Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] (PR#6382) pop up allied units in cities
Home

[Freeciv-Dev] (PR#6382) pop up allied units in cities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6382) pop up allied units in cities
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Oct 2003 23:37:17 -0700
Reply-to: rt@xxxxxxxxxxxxxx

With this patch you can successfully see a lone allied/shared vision 
unit in a city.  With the current code there is no way to tell what unit 
is there.

jason

Index: client/control.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/control.c,v
retrieving revision 1.113
diff -u -r1.113 control.c
--- client/control.c    2003/09/22 16:54:09     1.113
+++ client/control.c    2003/10/03 06:36:11
@@ -1370,6 +1370,9 @@
       if(can_unit_do_activity(punit, ACTIVITY_IDLE)) {
        set_unit_focus_and_select(punit);
       }
+    } else if (pcity) {
+      /* Don't hide the unit in the city. */
+      popup_unit_select_dialog(ptile);
     }
   } else if(unit_list_size(&ptile->units) > 0) {
     /* The stack list is always popped up, even if it includes enemy units.

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#6382) pop up allied units in cities, Jason Short <=