Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] Re: (PR#4619) client view options after game ended
Home

[Freeciv-Dev] Re: (PR#4619) client view options after game ended

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#4619) client view options after game ended
From: "ChrisK@xxxxxxxx" <ChrisK@xxxxxxxx>
Date: Sat, 19 Jul 2003 10:06:54 -0700
Reply-to: rt@xxxxxxxxxxxxxx

> CVS 18 JUL 2003 w/ patches GTK 1
> 
> After the game has ended, all client view options seem to work, except this
> one:
> 
> City Growth Ctrl-R (the number of turns following the city name) can't be
> switched neither on nor off.

This patch fixes the problem for me.

Christian

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.

diff -Nur -Xdiff_ignore ../../cvs/freeciv/client/control.c ./client/control.c
--- ../../cvs/freeciv/client/control.c  Fri Jul 18 08:48:12 2003
+++ ./client/control.c  Sat Jul 19 18:42:02 2003
@@ -1006,11 +1006,11 @@
 **************************************************************************/
 void request_toggle_city_growth(void)
 {
-  if (get_client_state() != CLIENT_GAME_RUNNING_STATE) {
+  if (!can_client_change_view()) {
     return;
   }
 
-  draw_city_growth = !draw_city_growth;
+  draw_city_growth ^= 1;
   update_map_canvas_visible();
 }
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#4619) client view options after game ended, ChrisK@xxxxxxxx <=