From ac81e02f5afe98e55d2d3d8bc0da2b7d8e084a6f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Mar 2024 11:13:27 +0100 Subject: ok --- src/scenery.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/scenery.cpp') diff --git a/src/scenery.cpp b/src/scenery.cpp index 20fdcad7..b5fd3b59 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -89,9 +89,8 @@ 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; - 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); + fm_debug_assert(anim.info().fps > 0 && anim.info().fps <= 0xff); + const auto n = (int)s.allocate_frame_time(dt); if (n == 0) return; const int8_t dir = closing ? 1 : -1; -- cgit v1.2.3