win32: fix frame advance hotkey no longer working after 25 days

(fixes #716)
This commit is contained in:
OV2 2022-01-31 17:29:01 +01:00
parent f56b1e7668
commit bdb27635e0
1 changed files with 1 additions and 1 deletions

View File

@ -944,7 +944,7 @@ int HandleKeyMessage(WPARAM wParam, LPARAM lParam)
&& modifiers == CustomKeys.FrameAdvance.modifiers)
{
static DWORD lastTime = 0;
if((int)(timeGetTime() - lastTime) > 20)
if((timeGetTime() - lastTime) > 20)
{
lastTime = timeGetTime();
if(Settings.Paused || GUI.FASkipsNonInput)