summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-01 19:37:53 +0000
committerrubidium <rubidium@openttd.org>2007-01-01 19:37:53 +0000
commitcaeabecea2176c125c5b1e6af124f89f46867210 (patch)
treec4779973f4ecf8e98294c2744497c9cbe60571ec
parent0e020927f87ad1c1553780fc1612f5bebc698d9b (diff)
downloadopenttd-caeabecea2176c125c5b1e6af124f89f46867210.tar.xz
(svn r7727) -Fix (FS#498): sometimes ALT-TAB could trigger the fast forward.
-rw-r--r--video/sdl_v.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c
index 77d7a1e53..d94819ded 100644
--- a/video/sdl_v.c
+++ b/video/sdl_v.c
@@ -440,7 +440,9 @@ static void SdlVideoMainLoop(void)
#if defined(_DEBUG)
if (_shift_pressed)
#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
{
if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;