From a4c65ca6a69987349f703e51beed47a219d3d92d Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 11 Dec 2024 21:32:05 +0100 Subject: timing fix --- src/crepe/system/PhysicsSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crepe/system/PhysicsSystem.cpp') diff --git a/src/crepe/system/PhysicsSystem.cpp b/src/crepe/system/PhysicsSystem.cpp index 77c3be7..78370d1 100644 --- a/src/crepe/system/PhysicsSystem.cpp +++ b/src/crepe/system/PhysicsSystem.cpp @@ -21,7 +21,7 @@ void PhysicsSystem::update() { RefVector rigidbodies = mgr.get_components_by_type(); duration_t delta_time = loop_timer.get_scaled_fixed_delta_time(); - float dt = duration_cast(delta_time).count(); + float dt = duration(delta_time).count(); float gravity = Config::get_instance().physics.gravity; for (Rigidbody & rigidbody : rigidbodies) { -- cgit v1.2.3