Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9419) another city_can_buy() user in gui-xaw
Home

[Freeciv-Dev] (PR#9419) another city_can_buy() user in gui-xaw

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9419) another city_can_buy() user in gui-xaw
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 18 Jul 2004 12:04:49 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9419 >

Here's one more user of city_can_buy().

jason

Index: client/gui-xaw/cityrep.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/cityrep.c,v
retrieving revision 1.55
diff -u -r1.55 cityrep.c
--- client/gui-xaw/cityrep.c    2 May 2004 08:00:50 -0000       1.55
+++ client/gui-xaw/cityrep.c    18 Jul 2004 19:01:33 -0000
@@ -328,8 +328,7 @@
     XtSetSensitive(city_change_command, TRUE);
     XtSetSensitive(city_center_command, TRUE);
     XtSetSensitive(city_popup_command, TRUE);
-    XtSetSensitive(city_buy_command, !pcity->did_buy && 
-         !(!pcity->is_building_unit && pcity->currently_building==B_CAPITAL));
+    XtSetSensitive(city_buy_command, city_can_buy(pcity));
     if (city_popupmenu)
       XtDestroyWidget(city_popupmenu);
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9419) another city_can_buy() user in gui-xaw, Jason Short <=