[Freeciv-Dev] (PR#11446) drawing background color for units
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11446 >
In fill_sprite_array we shouldn't fill the terrain BG unless there's a
tile involved. Otherwise turning off the terrain puts a background
behind units on the panel (except in iso-view this doesn't work and
causes a gdk error).
jason
Index: client/tilespec.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/tilespec.c,v
retrieving revision 1.204.2.10
diff -u -r1.204.2.10 tilespec.c
--- client/tilespec.c 8 Dec 2004 20:48:35 -0000 1.204.2.10
+++ client/tilespec.c 10 Dec 2004 02:19:30 -0000
@@ -2650,7 +2650,9 @@
ADD_BG(player_color(city_owner(pcity)));
}
} else if (!draw_terrain) {
- ADD_BG(COLOR_STD_BACKGROUND);
+ if (ptile) {
+ ADD_BG(COLOR_STD_BACKGROUND);
+ }
}
/* Terrain and specials. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#11446) drawing background color for units,
Jason Short <=
|
|