Added a missing cast

This commit is contained in:
Leon Styhre 2023-07-29 17:49:32 +02:00
parent f39d09d6b7
commit 1552cd11c4

View file

@ -524,8 +524,8 @@ void applicationLoop()
} while (SDL_PollEvent(&event));
}
int curTime = SDL_GetTicks();
int deltaTime = curTime - lastTime;
int curTime {static_cast<int>(SDL_GetTicks())};
int deltaTime {curTime - lastTime};
lastTime = curTime;
// Cap deltaTime if it ever goes negative.