Author: alink
Date: Fri Aug  3 06:09:30 2007
New Revision: 19310

URL: http://svn.gna.org/viewcvs/wesnoth?rev=19310&view=rev
Log:
move a little "temporary hack" to a place where it will be very rarely used

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=19310&r1=19309&r2=19310&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Fri Aug  3 06:09:30 2007
@@ -344,16 +344,15 @@
                                
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);
-
                        // draw reach_map information
                        if (!reach_map_.empty() && !is_shrouded && on_map) {
                                reach_map::iterator reach = 
reach_map_.find(*it);
                                if (reach == reach_map_.end()) {
                                        
tile_stack_append(image::get_image(game_config::unreachable_image,image::UNMASKED,image::NO_ADJUST_COLOUR));
                                } else if (reach->second > 1) {
+                                       //FIXME: this is a temporary hack to 
render/flush
+                                       //the stack, so we can draw text
+                                       tile_stack_render(xpos, ypos);
                                        const std::string num = 
lexical_cast<std::string>(reach->second);
                                        draw_text_in_hex(*it, num, 
font::SIZE_PLUS, font::YELLOW_COLOUR);
                                }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to