From f9ab8f01a170e75b0dc16f74421d9cbbe70dbac4 Mon Sep 17 00:00:00 2001 From: max-001 Date: Fri, 13 Dec 2024 13:00:44 +0100 Subject: Fix animator --- src/crepe/system/AnimatorSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/system/AnimatorSystem.cpp') 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 animations = mgr.get_components_by_type(); - 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; -- cgit v1.2.3