aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/src/timer.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 10:56:19 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 10:56:19 +0200
commite7377daf2fe3b759fbbf7e57f88c412c3b1cf011 (patch)
treed4b3af9e752b0e42116b992d27654bac5c5710ad /mwe/events/src/timer.cpp
parent58465175e761a908752542255fe584ce3aa1d163 (diff)
`make format`
Diffstat (limited to 'mwe/events/src/timer.cpp')
-rw-r--r--mwe/events/src/timer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/mwe/events/src/timer.cpp b/mwe/events/src/timer.cpp
index f4fee23..0b89bf5 100644
--- a/mwe/events/src/timer.cpp
+++ b/mwe/events/src/timer.cpp
@@ -16,8 +16,7 @@ void LoopTimer::start() {
// Update the timer, calculate deltaTime
void LoopTimer::update() {
uint64_t currentFrameTime = SDL_GetTicks64();
- deltaTime
- = (currentFrameTime - lastFrameTime) / 1000.0;
+ deltaTime = (currentFrameTime - lastFrameTime) / 1000.0;
if (deltaTime > maximumDeltaTime) {
deltaTime = maximumDeltaTime;