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
commit810e14cc21fdd1390c8ada0b66aa978c53b4a713 (patch)
treebe2f38b59e1105fc292a350ffaae0aa441d5ac17
parent39e52ca845e88cdb128d3f8b6b0d1c8dd88bfa10 (diff)
downloadopenttd-810e14cc21fdd1390c8ada0b66aa978c53b4a713.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) {