diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 12:14:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 12:14:25 +0100 |
commit | d5855147847d62d116359b560aa1f80b3691feb5 (patch) | |
tree | a0ef58c2dc116e684f2ed97ca757155461e7c3cb /editor/update.cpp | |
parent | f4a9ab08a06c751ca1464859b441d11bc5debc93 (diff) |
mark chunk as modified when modifying it
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index 36a872c5..53915908 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -29,8 +29,8 @@ void app::maybe_initialize_chunk_(const chunk_coords& pos, chunk& c) c[{K, K }].wall_west() = { _wall2, 0 }; c[{K, K+1}].wall_north() = { _wall1, 0 }; c[{K+1, K }].wall_west() = { _wall2, 0 }; - //c[{K+1, K+1}].scenery() = { _door, {rotation::N, 0} }; - //c.mark_modified(); + c[{K+1, K+1}].scenery() = { _door, {rotation::N, 0} }; + c.mark_modified(); } void app::maybe_initialize_chunk([[maybe_unused]] const chunk_coords& pos, [[maybe_unused]] chunk& c) |