summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-09 18:27:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-09 18:27:32 +0100
commit5907a8902e6f01774cebbb515349a66c86a47fb3 (patch)
tree7d3f90a38e038e0f4acbaf62b328fb23446ab7c7 /editor
parent1febb02d958fa4cf8c15e3ca18f9d644f9fc80fb (diff)
allow drawing walls in random order
Diffstat (limited to 'editor')
-rw-r--r--editor/tile-editor.cpp3
1 files changed, 2 insertions, 1 deletions
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: