[Freeciv-Dev] (PR#12379) unexpected behavior of 't' command
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12379 >
And this patch removes all overlays at the end of each turn. This seems
like reasonable default behavior IMO.
The patch is for 2.0, it can easily be updated for the dev branch.
-jason
Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.408.2.19
diff -u -r1.408.2.19 packhand.c
--- client/packhand.c 8 Feb 2005 18:07:29 -0000 1.408.2.19
+++ client/packhand.c 1 Mar 2005 20:35:12 -0000
@@ -800,6 +800,9 @@
update_info_label();
player_set_unit_focus_status(game.player_ptr);
+ unit_list_iterate(game.player_ptr->units, punit) {
+ punit->client.colored = FALSE;
+ } unit_list_iterate_end;
update_unit_focus();
auto_center_on_focus_unit();
@@ -815,7 +818,7 @@
last_turn_gold_amount=game.player_ptr->economic.gold;
#endif
- queue_mapview_update(UPDATE_CITY_DESCRIPTIONS);
+ queue_mapview_update(UPDATE_MAP_CANVAS_VISIBLE);
if (sound_bell_at_new_turn &&
(!game.player_ptr->ai.control || ai_manual_turn_done)) {
|
|