aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/LoopManager.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-01 23:03:07 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-01 23:03:07 +0100
commitcbd4b97d348c46f4f43fe59683a5e3d1bdbc500f (patch)
treed41f6323ffa31ef6d96ccc4f5198965f22f87c08 /src/crepe/api/LoopManager.cpp
parenta69ae733dae7996be41f54d8f8d9c1c5e5879b92 (diff)
improved readablity of check_collision function and reset LoopManager
Diffstat (limited to 'src/crepe/api/LoopManager.cpp')
-rw-r--r--src/crepe/api/LoopManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index d3a7f44..35919cc 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -47,11 +47,11 @@ void LoopManager::loop() {
while (game_running) {
timer.update();
- //while (timer.get_lag() >= timer.get_fixed_delta_time()) {
+ while (timer.get_lag() >= timer.get_fixed_delta_time()) {
this->process_input();
this->fixed_update();
timer.advance_fixed_update();
- //}
+ }
this->update();
this->render();