From 8d8b07ff50aa7ce20b6815e6552b64c1e73dd813 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Mar 2024 11:42:07 +0100 Subject: a --- src/object.cpp | 1 + src/scenery.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3