From 738f40e9d1ff60a27e90e6b727e9c01d5621a6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=9Aniatowski?= Date: Sun, 7 Sep 2008 11:29:31 +0100 Subject: [PATCH] fix bug #12289 - remove overly throw-happy code --- src/editor2/map_context.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/editor2/map_context.cpp b/src/editor2/map_context.cpp index dab1bf09541..aaa7b470a1a 100644 --- a/src/editor2/map_context.cpp +++ b/src/editor2/map_context.cpp @@ -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) {