add debug info

(cherry-picked from commit 9bb601e2da)
This commit is contained in:
gfgtdf 2018-08-13 00:29:07 +02:00
parent 8fbe9cb743
commit 35e34c7331

View file

@ -379,6 +379,7 @@ bool gamemap::on_board_with_border(const map_location& loc) const
void gamemap::set_terrain(const map_location& loc, const t_translation::terrain_code & terrain, const terrain_type_data::merge_mode mode, bool replace_if_failed) {
if(!on_board_with_border(loc)) {
DBG_G << "set_terrain: " << loc << " is not on the map.\n";
// off the map: ignore request
return;
}