From e72eb0b1d3149288d2a5291722c3ba68bb567a84 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 9 Jan 2024 02:59:27 +0100 Subject: a --- editor/wall-editor.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'editor') 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 -- cgit v1.2.3