summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-25 21:23:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-25 21:23:01 +0100
commit6a4ac0dc015106801d79cc258b06f896ea0e2716 (patch)
tree6b43962db0ae82a26b38785e14ac3de0a1ceb441 /editor/update.cpp
parent0b694f21edc97bd95faa65197bdda6b440479df3 (diff)
a
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 2b693526..7423ef76 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -152,10 +152,12 @@ void app::update_world(float dt)
if (auto [atlas, scenery] = x.scenery(); atlas != nullptr)
{
auto pass0 = scenery.passability;
- auto offset0 = scenery.bbox_offset;
- auto size0 = scenery.bbox_size;
+ auto offset0 = scenery.offset;
+ auto bb_offset0 = scenery.bbox_offset;
+ auto bb_size0 = scenery.bbox_size;
scenery.update(dt, *atlas);
- if (pass0 != scenery.passability || offset0 != scenery.offset || size0 != scenery.bbox_size)
+ if (pass0 != scenery.passability || offset0 != scenery.offset ||
+ bb_offset0 != scenery.bbox_offset || bb_size0 != scenery.bbox_size)
c.mark_scenery_modified();
}
}