Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2003:
[Freeciv-Dev] Re: (PR#3475) No flag from present units on map after rest
Home

[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]
To: ue80@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#3475) No flag from present units on map after restart of client
From: "Raimar Falke" <rf13@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Feb 2003 10:50:00 -0800
Reply-to: rt@xxxxxxxxxxxxxx

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()) {

[Prev in Thread] Current Thread [Next in Thread]