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/tile-editor.cpp | |
parent | f4a9ab08a06c751ca1464859b441d11bc5debc93 (diff) |
mark chunk as modified when modifying it
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r-- | editor/tile-editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp index 8df82609..6e4da967 100644 --- a/editor/tile-editor.cpp +++ b/editor/tile-editor.cpp @@ -147,6 +147,7 @@ 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: |