Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2005:
[Freeciv-Dev] (PR#12259) show more info in panel
Home

[Freeciv-Dev] (PR#12259) show more info in panel

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12259) show more info in panel
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 14 Feb 2005 21:29:25 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12259 >

It was complained that the panel, for no reason, doesn't show gold surplus.

This patch adds the gold surplus and turns to the panel.  There's plenty 
of room so this should be fine.  Some may question the inclusion of the 
turn number, but I don't see what it can hurt.

-jason

Index: client/text.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/text.c,v
retrieving revision 1.25
diff -u -r1.25 text.c
--- client/text.c       12 Feb 2005 18:47:18 -0000      1.25
+++ client/text.c       15 Feb 2005 05:28:26 -0000
@@ -455,8 +455,9 @@
 
   add_line(_("Population: %s"),
             population_to_text(civ_population(game.player_ptr)));
-  add_line(_("Year: %s"), textyear(game.year));
-  add_line(_("Gold: %d"), game.player_ptr->economic.gold);
+  add_line(_("Year: %s (T%d)"), textyear(game.year), game.turn);
+  add_line(_("Gold: %d (%+d)"), game.player_ptr->economic.gold,
+          player_get_expected_income(game.player_ptr));
   add_line(_("Tax: %d Lux: %d Sci: %d"), game.player_ptr->economic.tax,
           game.player_ptr->economic.luxury,
           game.player_ptr->economic.science);

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12259) show more info in panel, Jason Short <=