summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index b5fd3b59..20fdcad7 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -89,8 +89,9 @@ void door_scenery::update(scenery& s, size_t, Ns dt)
fm_assert(s.atlas);
auto& anim = *s.atlas;
const auto nframes = (int)anim.info().nframes;
- fm_debug_assert(anim.info().fps > 0 && anim.info().fps <= 0xff);
- const auto n = (int)s.allocate_frame_time(dt);
+ const auto fps = anim.info().fps;
+ fm_debug_assert(fps > 0 && fps <= 0xff);
+ const auto n = (int)s.allocate_frame_time(s.delta, dt, 1, fps);
if (n == 0)
return;
const int8_t dir = closing ? 1 : -1;