From 5907a8902e6f01774cebbb515349a66c86a47fb3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 9 Nov 2022 18:27:32 +0100 Subject: allow drawing walls in random order --- editor/tile-editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 6e4da967..66ca1e7b 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -147,15 +147,16 @@ tile_image_proto tile_editor::get_selected() void tile_editor::place_tile(world& world, global_coords pos, const tile_image_proto& img) { auto [c, t] = world[pos]; - c.mark_modified(); switch (_mode) { case editor_mode::none: break; case editor_mode::floor: + c.mark_ground_modified(); t.ground() = img; break; case editor_mode::walls: + c.mark_walls_modified(); switch (_rotation) { case editor_wall_rotation::N: -- cgit v1.2.3