Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9467) remove B_GRANARY from gui-xaw
Home

[Freeciv-Dev] (PR#9467) remove B_GRANARY from gui-xaw

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9467) remove B_GRANARY from gui-xaw
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Jul 2004 08:06:11 -0700
Reply-to: rt@xxxxxxxxxxx

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

client/gui-xaw/citydlg.c has a reference to B_GRANARY.

This patch just removes it.  No doubt it could be fixed but IMO it's not 
worth it.  I don't know if other clients have this feature.

jason

Index: client/gui-xaw/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/citydlg.c,v
retrieving revision 1.118
diff -u -r1.118 citydlg.c
--- client/gui-xaw/citydlg.c    17 Jul 2004 05:53:20 -0000      1.118
+++ client/gui-xaw/citydlg.c    21 Jul 2004 15:05:07 -0000
@@ -209,19 +209,18 @@
                                    char *retbuf, int n)
 {
   struct city *pcity;
-  char granary='?';
   int foodstock=0;
   int foodbox=0;
 
   if (pdialog) {
     pcity=pdialog->pcity;
-    granary=(city_got_effect(pcity, B_GRANARY) ? '*' : ' ');
     foodstock=pcity->food_stock;
     foodbox=city_granary_size(pcity->size);
   }
 
-  my_snprintf(retbuf, n, _("Granary: %c%3d/%-3d"),
-             granary, foodstock, foodbox);
+  /* We used to mark cities with a granary with a "*" here. */
+  my_snprintf(retbuf, n, _("Granary:  %3d/%-3d"),
+             foodstock, foodbox);
 }
 
 /****************************************************************

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9467) remove B_GRANARY from gui-xaw, Jason Short <=