From bdb27635e0f6b165dc82a754ca9a032927d11c32 Mon Sep 17 00:00:00 2001 From: OV2 Date: Mon, 31 Jan 2022 17:29:01 +0100 Subject: [PATCH] win32: fix frame advance hotkey no longer working after 25 days (fixes #716) --- win32/wsnes9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/wsnes9x.cpp b/win32/wsnes9x.cpp index 8041d480..568659ac 100644 --- a/win32/wsnes9x.cpp +++ b/win32/wsnes9x.cpp @@ -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)