summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-04 10:55:53 +0000
committerrubidium <rubidium@openttd.org>2006-12-04 10:55:53 +0000
commit9cdeeb18cb185e0d6190371316be8db946d7bc97 (patch)
treebe2f38b59e1105fc292a350ffaae0aa441d5ac17
parenta1f5d2078f47fcd19ca9b441a82d22ec7284c86a (diff)
downloadopenttd-9cdeeb18cb185e0d6190371316be8db946d7bc97.tar.xz
(svn r7350) -Fix: do not handle the save game/scenario filename edit box when loading a game/scenario/heightmap.
-rw-r--r--misc_gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc_gui.c b/misc_gui.c
index b1b9f7f37..1e06a95d8 100644
--- a/misc_gui.c
+++ b/misc_gui.c
@@ -1467,7 +1467,9 @@ static void SaveLoadDlgWndProc(Window *w, WindowEvent *e)
}
break;
case WE_MOUSELOOP:
- HandleEditBox(w, &WP(w, querystr_d), 10);
+ if (_saveload_mode == SLD_SAVE_GAME || _saveload_mode == SLD_SAVE_SCENARIO) {
+ HandleEditBox(w, &WP(w, querystr_d), 10);
+ }
break;
case WE_KEYPRESS:
if (e->we.keypress.keycode == WKC_ESC) {