From 4a9ecaa0b298b2020686894333c1c0ec3f01dbc1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Mar 2024 19:25:10 +0100 Subject: b --- src/critter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/critter.cpp b/src/critter.cpp index 8c28a00e..c40c47d8 100644 --- a/src/critter.cpp +++ b/src/critter.cpp @@ -254,14 +254,14 @@ void critter::update_nonplayable(size_t i, const Ns& dt) void critter::update_movement(size_t i, const Ns& dt, rotation new_r) { - fm_assert(new_r < rotation_COUNT); - fm_assert(is_dynamic()); - const auto& info = atlas->info(); const auto nframes = alloc_frame_time(dt, delta, info.fps, speed); if (nframes == 0) return; + fm_assert(new_r < rotation_COUNT); + fm_assert(is_dynamic()); + if (r != new_r) rotate(i, new_r); c->ensure_passability(); -- cgit v1.2.3