summaryrefslogtreecommitdiffhomepage
path: root/src/critter.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-05 14:17:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-05 14:17:33 +0100
commit13c5225a2ad494fd3ede13a5973bceacde03452a (patch)
treec077a5c71e78b009eb8cc32ae04de3846ea680f1 /src/critter.cpp
parent11e8370de4723e19e450b38c5d9db87b966f745b (diff)
allow running allocate_frame on uint32_t
Diffstat (limited to 'src/critter.cpp')
-rw-r--r--src/critter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/critter.cpp b/src/critter.cpp
index 490aa757..96f7bc2a 100644
--- a/src/critter.cpp
+++ b/src/critter.cpp
@@ -156,7 +156,8 @@ void critter::update_movement(size_t i, Ns dt, rotation new_r)
fm_assert(new_r < rotation_COUNT);
fm_assert(is_dynamic());
- auto nframes = allocate_frame_time(dt, speed);
+ const auto hz = atlas->info().fps;
+ const auto nframes = allocate_frame_time<uint16_t>(dt, delta, hz, speed);
if (nframes == 0)
{
//static unsigned foo;