diff options
author | alberth <alberth@openttd.org> | 2016-09-04 16:06:50 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2016-09-04 16:06:50 +0000 |
commit | 0adfb1ac6f8fa99ede48daaebd5fc4184c9797e3 (patch) | |
tree | 281a80ddd52788410aba4b4c73aa4f80523e2d1b /src/console_cmds.cpp | |
parent | 4001f6215e5d1e56aba121c226fb7e824a170f21 (diff) | |
download | openttd-0adfb1ac6f8fa99ede48daaebd5fc4184c9797e3.tar.xz |
(svn r27653) -Fix(r27647): Rename FileOperation enum and values to SaveLoadOperation to avoid nameclash with windows compiler toolkit.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r-- | src/console_cmds.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 863929b94..9cfc8e8f9 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -67,7 +67,7 @@ public: void ValidateFileList(bool force_reload = false) { if (force_reload || !this->file_list_valid) { - this->BuildFileList(FT_SAVEGAME, FOP_LOAD); + this->BuildFileList(FT_SAVEGAME, SLO_LOAD); this->file_list_valid = true; } } @@ -318,7 +318,7 @@ DEF_CONSOLE_CMD(ConSave) char *filename = str_fmt("%s.sav", argv[1]); IConsolePrint(CC_DEFAULT, "Saving map..."); - if (SaveOrLoad(filename, FOP_SAVE, DFT_GAME_FILE, SAVE_DIR) != SL_OK) { + if (SaveOrLoad(filename, SLO_SAVE, DFT_GAME_FILE, SAVE_DIR) != SL_OK) { IConsolePrint(CC_ERROR, "Saving map failed"); } else { IConsolePrintF(CC_DEFAULT, "Map successfully saved to %s", filename); |