Draw the map border over _off^_usr tiles too.
(http://www.wesnoth.org/forum/viewtopic.php?p=426849#p426849)
This commit is contained in:
parent
95517b8fe3
commit
bd05419633
2 changed files with 2 additions and 2 deletions
|
@ -93,6 +93,7 @@ Version 1.9.0-svn:
|
|||
* Prototype support for [clear_global_variable]
|
||||
* Added scroll_to_leader attribute to side tag.
|
||||
Default value is 'yes' (bug #15921)
|
||||
* Draw the map border over _off^_usr tiles too.
|
||||
* Miscellaneous and bug fixes:
|
||||
* Defaulted log level to warning again
|
||||
* New option to auto-set delay shroud update on game start
|
||||
|
|
|
@ -1951,7 +1951,6 @@ void display::draw_invalidated() {
|
|||
int xpos = get_location_x(loc);
|
||||
int ypos = get_location_y(loc);
|
||||
const bool on_map = get_map().on_board(loc);
|
||||
const bool off_map_tile = (get_map().get_terrain(loc) == t_translation::OFF_MAP_USER);
|
||||
SDL_Rect hex_rect = {xpos, ypos, zoom_, zoom_};
|
||||
if(!rects_overlap(hex_rect,clip_rect)) {
|
||||
continue;
|
||||
|
@ -1959,7 +1958,7 @@ void display::draw_invalidated() {
|
|||
draw_hex(loc);
|
||||
drawn_hexes_+=1;
|
||||
// If the tile is at the border, we start to blend it
|
||||
if(!on_map && !off_map_tile) {
|
||||
if(!on_map) {
|
||||
draw_border(loc, xpos, ypos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue