summaryrefslogtreecommitdiffhomepage
path: root/editor/wall-editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-09 02:59:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-09 02:59:45 +0100
commite72eb0b1d3149288d2a5291722c3ba68bb567a84 (patch)
tree5fb4c8dfb97f8f57d946b770b228ff97ac04d5cf /editor/wall-editor.cpp
parent76559b1d8c7b0f6a29c729d9c82e4c1e15d988f0 (diff)
a
Diffstat (limited to 'editor/wall-editor.cpp')
-rw-r--r--editor/wall-editor.cpp6
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