Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] (PR#2694) settler can't build after zero-move focus
Home

[Freeciv-Dev] (PR#2694) settler can't build after zero-move focus

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2694) settler can't build after zero-move focus
From: "Mike Kaufman via RT" <rt@xxxxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 19:01:00 -0800
Reply-to: rt@xxxxxxxxxxxxxx

the reason this happens is that the unit in focus has no moves left at the
end of the turn, so can't build, but at the beginning of the turn has
moves, but the menus haven't been updated.

The attached patch should fix this.

-mike

diff -Nur -Xcvs/diff_ignore cvs/client/packhand.c test-build/client/packhand.c
--- cvs/client/packhand.c       Thu Jan 16 19:27:58 2003
+++ test-build/client/packhand.c        Thu Jan 16 20:56:17 2003
@@ -675,6 +675,7 @@
   auto_center_on_focus_unit();
 
   update_unit_info_label(get_unit_in_focus());
+  update_menus();
 
   seconds_to_turndone=game.timeout;
 

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2694) settler can't build after zero-move focus, Mike Kaufman via RT <=