diff options
| author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:56:19 +0200 | 
|---|---|---|
| committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-24 10:56:19 +0200 | 
| commit | e7377daf2fe3b759fbbf7e57f88c412c3b1cf011 (patch) | |
| tree | d4b3af9e752b0e42116b992d27654bac5c5710ad /mwe/events/src/timer.cpp | |
| parent | 58465175e761a908752542255fe584ce3aa1d163 (diff) | |
`make format`
Diffstat (limited to 'mwe/events/src/timer.cpp')
| -rw-r--r-- | mwe/events/src/timer.cpp | 3 | 
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;  |