summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-13 17:05:03 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-13 17:05:03 +0000
commit408a036bcc23394f4933e2e3c657e73476ad4cdc (patch)
tree85fac4cb46e4806505f48c4ff76d5c3075b7c171
parentdcd4ad4155ce857f529f5b555ddac74a6004fca1 (diff)
downloadopenttd-408a036bcc23394f4933e2e3c657e73476ad4cdc.tar.xz
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
-rw-r--r--console_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 9cf286a4f..d1b69ad27 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -170,6 +170,7 @@ static const FiosItem* GetFiosItem(const char* file)
{
int i;
+ _saveload_mode = SLD_LOAD_GAME;
BuildFileList();
for (i = 0; i < _fios_num; i++) {
@@ -227,7 +228,6 @@ DEF_CONSOLE_CMD(ConListFiles)
return true;
}
- _saveload_mode = SLD_LOAD_GAME;
BuildFileList();
for (i = 0; i < _fios_num; i++) {