diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:13:27 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:13:27 +0100 |
| commit | ac81e02f5afe98e55d2d3d8bc0da2b7d8e084a6f (patch) | |
| tree | f90f8c5d1f62ef3bc7541d9b7e571014c0a90a82 /src/scenery.cpp | |
| parent | fa8fb9598ed255057badc888da7e22227c45de1c (diff) | |
ok
Diffstat (limited to 'src/scenery.cpp')
| -rw-r--r-- | src/scenery.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; |
