mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r7727) -Fix (FS#498): sometimes ALT-TAB could trigger the fast forward.
This commit is contained in:
parent
0e020927f8
commit
caeabecea2
@ -440,7 +440,9 @@ static void SdlVideoMainLoop(void)
|
|||||||
#if defined(_DEBUG)
|
#if defined(_DEBUG)
|
||||||
if (_shift_pressed)
|
if (_shift_pressed)
|
||||||
#else
|
#else
|
||||||
if (keys[SDLK_TAB])
|
/* Speedup when pressing tab, except when using ALT+TAB
|
||||||
|
* to switch to another application */
|
||||||
|
if (keys[SDLK_TAB] && (mod & KMOD_ALT) == 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;
|
if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user