mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +00:00
Added a missing cast
This commit is contained in:
parent
f39d09d6b7
commit
1552cd11c4
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue