aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 15:04:36 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-11 15:04:36 +0100
commitcd708c639c34cbc7d978686e54303c91f15954c0 (patch)
treea469b265dd6e7e362200290cc6267c0dd3927cf5 /src/crepe/api
parentdfa8ffbc03c4c1acd74fd14e54c6ee566a3c445c (diff)
parent68c9e7511ea52c6ee70d052bbdf2923cd68bfa8a (diff)
Merge branch 'wouter/gameloop' of https://github.com/lonkaars/crepe into wouter/gameloop
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/LoopManager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crepe/api/LoopManager.cpp b/src/crepe/api/LoopManager.cpp
index b335cad..b5e5ff7 100644
--- a/src/crepe/api/LoopManager.cpp
+++ b/src/crepe/api/LoopManager.cpp
@@ -43,7 +43,6 @@ void LoopManager::setup() {
void LoopManager::loop() {
try {
-
while (game_running) {
this->loop_timer.update();
@@ -56,7 +55,7 @@ void LoopManager::loop() {
this->loop_timer.enforce_frame_rate();
}
} catch (const exception & e) {
- Log::logf(Log::Level::ERROR, "Exception caught in main loop: %s", e.what());
+ Log::logf(Log::Level::ERROR, "Exception caught in main loop: {}", e.what());
this->event_manager.trigger_event<ShutDownEvent>(ShutDownEvent{});
}
}