summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-08 02:22:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-08 02:22:19 +0200
commit65e3219a29f9defdd588d2a2bf29d9a4c5e2d86d (patch)
tree1ed4b89db4676b2785df8a8e7ae8723c2900d50e
parent8ed163a3e464f9cd8621c7fdc9ad5f9fca3d5d85 (diff)
fix scenery not reloading on teleport_to() within same chunk
-rw-r--r--src/object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp
index 3c1dae9a..49f56227 100644
--- a/src/object.cpp
+++ b/src/object.cpp
@@ -242,6 +242,8 @@ void object::teleport_to(size_t& i, global_coords coord_, Vector2b offset_, rota
non_const(coord) = coord_;
set_bbox_(offset_, bb_offset, bb_size, pass);
non_const(r) = new_r;
+ if (!dyn)
+ c->mark_scenery_modified();
}
else
{