mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 00:02:17 +00:00
fix bug #12289 - remove overly throw-happy code
This commit is contained in:
parent
f2bc890cb2
commit
738f40e9d1
@ -64,7 +64,10 @@ void map_context::draw_terrain_actual(t_translation::t_terrain terrain,
|
||||
const gamemap::location& loc, bool one_layer_only)
|
||||
{
|
||||
if (!map_.on_board_with_border(loc)) {
|
||||
throw editor_action_exception("Attempted to draw terrain off the map");
|
||||
//requests for painting off the map are ignored in set_terrain anyway,
|
||||
//but ideally we should not have any
|
||||
LOG_ED << "Attempted to draw terrain off the map (" << loc << ")\n";
|
||||
return;
|
||||
}
|
||||
t_translation::t_terrain old_terrain = map_.get_terrain(loc);
|
||||
if (terrain != old_terrain) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user