Add a warning in scroll_to_tile if the tile isn't on the map.

This commit is contained in:
Mark de Wever 2008-02-07 17:27:17 +00:00
parent 008325e504
commit baa482be0c

View File

@ -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;
}