1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-12 09:09:09 +00:00

Codechange: [Win32] make fast-forward check the same as with other drivers

It was of all the drivers the only one doing this slightly different.
When trying to unify more code, that was rather annoying.
This commit is contained in:
Patric Stout
2021-02-19 10:45:25 +01:00
committed by Patric Stout
parent d21442941c
commit 38b4ae1c0e

View File

@@ -1175,13 +1175,13 @@ void VideoDriver_Win32::MainLoop()
if (_exit_game) break; if (_exit_game) break;
#if defined(_DEBUG) #if defined(_DEBUG)
if (_wnd.has_focus && GetAsyncKeyState(VK_SHIFT) < 0 && if (_wnd.has_focus && GetAsyncKeyState(VK_SHIFT) < 0)
#else #else
/* Speed up using TAB, but disable for ALT+TAB of course */ /* Speed up using TAB, but disable for ALT+TAB of course */
if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0 && GetAsyncKeyState(VK_MENU) >= 0 && if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0 && GetAsyncKeyState(VK_MENU) >= 0)
#endif #endif
!_networking && _game_mode != GM_MENU) { {
_fast_forward |= 2; if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;
} else if (_fast_forward & 2) { } else if (_fast_forward & 2) {
_fast_forward = 0; _fast_forward = 0;
} }