diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-12 18:25:11 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-12 18:25:11 +0100 |
commit | bef438ff7790acbe2dc376097e1782e60356bf45 (patch) | |
tree | 863b877bcbbf27d8411db954e4a859f3f46cdcfe /src/crepe/system/ParticleSystem.cpp | |
parent | 962c987adff029dc2cbc60b0f1bb9b21b1d416f7 (diff) |
changed get dt
Diffstat (limited to 'src/crepe/system/ParticleSystem.cpp')
-rw-r--r-- | src/crepe/system/ParticleSystem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crepe/system/ParticleSystem.cpp b/src/crepe/system/ParticleSystem.cpp index 204afaf..a58edf0 100644 --- a/src/crepe/system/ParticleSystem.cpp +++ b/src/crepe/system/ParticleSystem.cpp @@ -17,7 +17,7 @@ void ParticleSystem::update() { const Mediator & mediator = this->mediator; LoopTimerManager & loop_timer = mediator.loop_timer; ComponentManager & mgr = mediator.component_manager; - float dt = std::chrono::duration<float>(loop_timer.get_scaled_fixed_delta_time()).count(); + float dt = loop_timer.get_scaled_fixed_delta_time(); RefVector<ParticleEmitter> emitters = mgr.get_components_by_type<ParticleEmitter>(); |