Author: ilor
Date: Thu Aug 21 21:37:24 2008
New Revision: 28831

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28831&view=rev
Log:
editor2 map edge selection highlight tweak

Modified:
    trunk/src/editor2/editor_display.cpp

Modified: trunk/src/editor2/editor_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_display.cpp?rev=28831&r1=28830&r2=28831&view=diff
==============================================================================
--- trunk/src/editor2/editor_display.cpp (original)
+++ trunk/src/editor2/editor_display.cpp Thu Aug 21 21:37:24 2008
@@ -77,13 +77,12 @@
 
 void editor_display::draw_hex(const gamemap::location& loc)
 {
-       const bool on_map = map_.on_board(loc);
        int xpos = get_location_x(loc);
        int ypos = get_location_y(loc);
        int drawing_order = gamemap::get_drawing_order(loc);
        tblit blit(xpos, ypos);
        display::draw_hex(loc);
-       if (on_map && map().in_selection(loc)) {
+       if (map().on_board_with_border(loc) && map().in_selection(loc)) {
                drawing_buffer_add(LAYER_FOG_SHROUD, drawing_order, tblit(xpos, 
ypos,
                        image::get_image("editor/selection-overlay.png", 
image::SCALED_TO_HEX)));
        }


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

Reply via email to