Author: alink
Date: Fri Aug 3 06:04:14 2007
New Revision: 19309
URL: http://svn.gna.org/viewcvs/wesnoth?rev=19309&view=rev
Log:
Draw the grid under the black stripes. I think it make more sense.
Before, when the grid was on top, it broke the continuity of the stripes
Modified:
trunk/src/game_display.cpp
Modified: trunk/src/game_display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=19309&r1=19308&r2=19309&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Fri Aug 3 06:04:14 2007
@@ -306,7 +306,6 @@
}
*/
-
tile_stack_clear();
if(!is_shrouded /*|| !on_map*/) {
@@ -340,6 +339,11 @@
tile_stack_append(image::get_image(tod_hex_mask,image::UNMASKED,image::NO_ADJUST_COLOUR));
}
+ // draw the grid, if that's been enabled
+ if(grid_ && !is_shrouded && on_map) {
+
tile_stack_append(image::get_image(game_config::grid_image));
+ }
+
//FIXME: this is a temporary hack to render/flush
//the stack, so we can draw text
tile_stack_render(xpos, ypos);
@@ -355,12 +359,7 @@
}
}
- // draw the grid, if that's been enabled
- if(grid_ && !is_shrouded && on_map) {
-
tile_stack_append(image::get_image(game_config::grid_image));
- }
-
- // draw cross images for debug highlights
+ // draw cross images for debug highlights
if(game_config::debug && debugHighlights_.count(*it)) {
tile_stack_append(image::get_image(game_config::cross_image));
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits