Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2000:
[Freeciv-Dev] send city updates juring turn

[Freeciv-Dev] send city updates juring turn

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] send city updates juring turn
From: Thue Janus Kristensen <thue@xxxxxxx>
Date: Thu, 27 Apr 2000 19:21:24 +0200

Here is an updated patch. Whenever a unit
-enters a city
-leaves a city
-enters a square with fortress
-leaves a square with fortress

the city, the units homecity and the unit is updated as needed and send to
the client. This is not done if the player is AI controlled, so avoiding
lengthening the AI turns. It is a bit crudely done right now, but it
works, and as it is done juring the player turn it should not feel slow.
This is very usefull when the unit movement results in a city getting
into disorder/order.

I also moved a few functions that didn't belong in unithand.c to
unitfunc.c .

 It should be applied on top of my paradrop patch. (attached)
Apropos my paradrop patch, I inserted a few extra calls to
update_unit_info_label(punit); that I am not sure should be there. They
are removed in the attached patch.


Attachment: update_cities_juring_turn-Apr-27.diff
Description: Text Data

Attachment: paradrop2-Apr-27.diff
Description: Text document

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] send city updates juring turn, Thue Janus Kristensen <=