aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-12-13 13:00:44 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-12-13 13:00:44 +0100
commitf9ab8f01a170e75b0dc16f74421d9cbbe70dbac4 (patch)
tree29e625dbe179d6dbedae8b3484f4929d95722551 /src/crepe
parent0f600b3281cca9183b0e8a6e34c79ec538d8ea2d (diff)
Fix animator
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/system/AnimatorSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/AnimatorSystem.cpp b/src/crepe/system/AnimatorSystem.cpp
index 31eb85c..dd8c5ed 100644
--- a/src/crepe/system/AnimatorSystem.cpp
+++ b/src/crepe/system/AnimatorSystem.cpp
@@ -13,7 +13,7 @@ void AnimatorSystem::update() {
LoopTimerManager & timer = this->mediator.loop_timer;
RefVector<Animator> animations = mgr.get_components_by_type<Animator>();
- unsigned long long elapsed_time = timer.get_elapsed_time().count();
+ float elapsed_time = timer.get_elapsed_time().count() / 1000000.0f;
for (Animator & a : animations) {
if (!a.active) continue;