diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:42:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:42:07 +0100 |
commit | 8d8b07ff50aa7ce20b6815e6552b64c1e73dd813 (patch) | |
tree | 7bb73eb000a22e1dcffb465ccfd09c323be1893b | |
parent | 558a7fa472a18cb48c5c898931c7b2c6fb988376 (diff) |
a
-rw-r--r-- | src/object.cpp | 1 | ||||
-rw-r--r-- | src/scenery.cpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp index 1b0aad58..6bab7186 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -291,6 +291,7 @@ uint32_t object::allocate_frame_time(Ns dt, uint16_t& accum, uint32_t hz, float << ", acc:" << new_accum_ << ", rem:" << rem; #endif + fm_assert(frames < 1 << 22); return frames; } diff --git a/src/scenery.cpp b/src/scenery.cpp index 937fc922..2666f912 100644 --- a/src/scenery.cpp +++ b/src/scenery.cpp @@ -89,7 +89,6 @@ 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, 1); if (n == 0) return; |