mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 22:11:15 +00:00
Add a warning in scroll_to_tile if the tile isn't on the map.
This commit is contained in:
parent
008325e504
commit
baa482be0c
@ -1429,6 +1429,7 @@ void display::scroll_to_tile(const gamemap::location& loc, SCROLL_TYPE scroll_ty
|
||||
}
|
||||
|
||||
if(map_.on_board(loc) == false) {
|
||||
ERR_DP << "Tile at " << loc << " isn't on the map, can't scroll to the tile.\n";
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user