aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Engine.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-03 19:39:23 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-03 19:39:23 +0100
commit4f687de3530fac052f30dac7b8c59dae103bcf81 (patch)
treeaf02b332b6a6efced3357834cc2f30fbfe7b223b /src/crepe/api/Engine.cpp
parentd65e0ff31a75230fd1c18eaeab9cb25ab2b9c82a (diff)
parent61148c757a1f742ff09e40e5347e74e638c7371c (diff)
merge
Diffstat (limited to 'src/crepe/api/Engine.cpp')
-rw-r--r--src/crepe/api/Engine.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/crepe/api/Engine.cpp b/src/crepe/api/Engine.cpp
index 4add4e1..0bbe51f 100644
--- a/src/crepe/api/Engine.cpp
+++ b/src/crepe/api/Engine.cpp
@@ -46,8 +46,10 @@ void Engine::loop() {
try {
systems.fixed_update();
} catch (const exception & e) {
- Log::logf(Log::Level::WARNING,
- "Uncaught exception in fixed update function: {}\n", e.what());
+ Log::logf(
+ Log::Level::WARNING, "Uncaught exception in fixed update function: {}\n",
+ e.what()
+ );
}
timer.advance_fixed_elapsed_time();
}
@@ -56,8 +58,10 @@ void Engine::loop() {
systems.frame_update();
this->scene_manager.load_next_scene();
} catch (const exception & e) {
- Log::logf(Log::Level::WARNING, "Uncaught exception in frame update function: {}\n",
- e.what());
+ Log::logf(
+ Log::Level::WARNING, "Uncaught exception in frame update function: {}\n",
+ e.what()
+ );
}
timer.enforce_frame_rate();
}