diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-19 10:45:25 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-20 17:08:44 +0100 |
commit | 38b4ae1c0ea05944cda66a499454a5b08a7a4462 (patch) | |
tree | 2689b5c9cb3e2bc507526fc00053624b65407a25 | |
parent | d21442941c321f47442c428c0ba89e0d0d53850f (diff) | |
download | openttd-38b4ae1c0ea05944cda66a499454a5b08a7a4462.tar.xz |
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.
-rw-r--r-- | src/video/win32_v.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp index f3ae911b7..3f230e621 100644 --- a/src/video/win32_v.cpp +++ b/src/video/win32_v.cpp @@ -1175,13 +1175,13 @@ void VideoDriver_Win32::MainLoop() if (_exit_game) break; #if defined(_DEBUG) - if (_wnd.has_focus && GetAsyncKeyState(VK_SHIFT) < 0 && + if (_wnd.has_focus && GetAsyncKeyState(VK_SHIFT) < 0) #else /* 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 - !_networking && _game_mode != GM_MENU) { - _fast_forward |= 2; + { + if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2; } else if (_fast_forward & 2) { _fast_forward = 0; } |