[Freeciv-Dev] Re: (PR#3475) No flag from present units on map after rest
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, Feb 19, 2003 at 07:44:34AM -0800, ue80@xxxxxxxxxxxxxxxxxxxxx wrote:
>
> hi,
>
> when rejoining to a running (cvs)game there a no flags for present units
> on the cities.
Also new units set the occupied flag. Fix attached.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
Windows: Where do you want to go today?
Linux: Where do you want to go tomorrow?
BSD: Are you guys coming or what?
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.291
diff -u -u -r1.291 packhand.c
--- client/packhand.c 2003/02/17 22:49:27 1.291
+++ client/packhand.c 2003/02/19 18:47:44
@@ -1075,6 +1075,10 @@
repaint_unit = !packet->carried;
agents_unit_new(punit);
+
+ if ((pcity = map_get_city(punit->x, punit->y))) {
+ pcity->occupied = TRUE;
+ }
}
if (punit && punit == get_unit_in_focus()) {
|
|