fix bug #12289 - remove overly throw-happy code

This commit is contained in:
Tomasz Śniatowski 2008-09-07 11:29:31 +01:00
parent f2bc890cb2
commit 738f40e9d1

View File

@ -64,7 +64,10 @@ void map_context::draw_terrain_actual(t_translation::t_terrain terrain,
const gamemap::location& loc, bool one_layer_only) const gamemap::location& loc, bool one_layer_only)
{ {
if (!map_.on_board_with_border(loc)) { 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); t_translation::t_terrain old_terrain = map_.get_terrain(loc);
if (terrain != old_terrain) { if (terrain != old_terrain) {