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

Tiles worked by cities would have their output
drawn on the main map view because of a missing
test in fill_city_overlays_sprite_array, when
they should only draw the output in citymode
(i.e. in the city dialog's mapview).


----------------------------------------------------------------------
当然だぞ。
>From fbee9f59d5ab79e0cc212b2856455ca5bf938500 Mon Sep 17 00:00:00 2001
From: Madeline Book <[EMAIL PROTECTED]>
Date: Thu, 29 May 2008 22:06:10 -0400
Subject: [PATCH] Only draw output sprites in citymode.

Tiles worked by cities would have their output
drawn on the main map view because of a missing
test in fill_city_overlays_sprite_array, when
they should only draw the output in citymode
(i.e. in the city dialog's mapview).
---
 client/tilespec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/client/tilespec.c b/client/tilespec.c
index 6b952a6..916bfac 100644
--- a/client/tilespec.c
+++ b/client/tilespec.c
@@ -3637,7 +3637,7 @@ static int fill_city_overlays_sprite_array(const struct tileset *t,
       } else if (city_can_work_tile(pcity, ptile)) {
         ADD_SPRITE_SIMPLE(t->sprites.city.unworked_tile_overlay.p[index]);
       }
-    } else if (NULL != pwork && pwork == pcity) {
+    } else if (citymode && NULL != pwork && pwork == pcity) {
       /* Add on the tile output sprites. */
       int food = city_tile_output_now(pcity, ptile, O_FOOD);
       int shields = city_tile_output_now(pcity, ptile, O_SHIELD);
-- 
1.5.5.1

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to