summaryrefslogtreecommitdiff
path: root/src/fios_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-05-28 13:55:34 +0000
committeralberth <alberth@openttd.org>2011-05-28 13:55:34 +0000
commitf1cae9960f37b853e1abc0c02b6c31590cc86cb1 (patch)
treec7cbb2f604cfafa592aa0c8b263d14d1d7f5da3a /src/fios_gui.cpp
parent18382251923ac04007a59077f513184a3e66e5ec (diff)
downloadopenttd-f1cae9960f37b853e1abc0c02b6c31590cc86cb1.tar.xz
(svn r22512) -Add: Save heightmap.
Diffstat (limited to 'src/fios_gui.cpp')
-rw-r--r--src/fios_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp
index 84d41755c..c3b3be621 100644
--- a/src/fios_gui.cpp
+++ b/src/fios_gui.cpp
@@ -527,7 +527,7 @@ public:
case SLWW_LOAD_BUTTON:
if (this->selected != NULL && !_load_check_data.HasErrors() && (_load_check_data.grf_compatibility != GLC_NOT_FOUND || _settings_client.gui.UserIsAllowedToChangeNewGRFs())) {
- _switch_mode = (_game_mode == GM_EDITOR) ? SM_LOAD_SCENARIO : SM_LOAD;
+ _switch_mode = (_game_mode == GM_EDITOR) ? SM_LOAD_SCENARIO : SM_LOAD_GAME;
const char *name = FiosBrowseTo(this->selected);
SetFiosType(this->selected->type);
@@ -649,7 +649,7 @@ public:
UpdateTextBufferSize(&this->text);
} else if (this->IsWidgetLowered(SLWW_SAVE_GAME)) { // Save button clicked
- _switch_mode = SM_SAVE;
+ _switch_mode = SM_SAVE_GAME;
FiosMakeSavegameName(_file_to_saveload.name, this->text.buf, sizeof(_file_to_saveload.name));
/* In the editor set up the vehicle engines correctly (date might have changed) */