diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-10 14:08:42 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-10 14:08:42 +0100 |
commit | 6cd6ed3eb2a14e703e97bf95fe1b73fb8d3d91f4 (patch) | |
tree | 7c4d698a87eefdbaac5ae9c1a5b092e94264f6cc /src/crepe | |
parent | 4ea6ea704ba59f0d56718e1ed903f49ca250ab5d (diff) |
changed function name and removed auto
Diffstat (limited to 'src/crepe')
-rw-r--r-- | src/crepe/manager/LoopTimerManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crepe/manager/LoopTimerManager.cpp b/src/crepe/manager/LoopTimerManager.cpp index e57ec6f..8725c33 100644 --- a/src/crepe/manager/LoopTimerManager.cpp +++ b/src/crepe/manager/LoopTimerManager.cpp @@ -55,9 +55,7 @@ void LoopTimerManager::advance_fixed_elapsed_time() { void LoopTimerManager::set_target_fps(int fps) { this->target_fps = fps; //check if fps is lower or equals 0 - if (fps <= 0) { - return; - } + if (fps <= 0) return; // target time per frame in seconds this->frame_target_time = std::chrono::duration<double>(1.0) / this->target_fps; } |