diff options
Diffstat (limited to 'editor/wall-editor.cpp')
-rw-r--r-- | editor/wall-editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp index 2341f929..b311145a 100644 --- a/editor/wall-editor.cpp +++ b/editor/wall-editor.cpp @@ -80,7 +80,11 @@ void wall_editor::place_tile(world& w, global_coords coords, const std::shared_p case rotation::W: t.wall_west() = { atlas, (variant_t)-1 }; break; default: std::unreachable(); } - c.mark_walls_modified(); + //c.mark_walls_modified(); + for (int y = -1; y <= 1; y++) + for (int x = -1; x <= 1; x++) + if (auto* ch = w.at(coords + Vector2i(x, y))) + ch->mark_walls_modified(); } editor_snap_mode wall_editor::check_snap(int mods) const |