diff options
author | rubidium <rubidium@openttd.org> | 2009-01-02 22:49:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-02 22:49:43 +0000 |
commit | 3a0d966ae408aecc0bdad3325c1cc75927d58e89 (patch) | |
tree | 13fdf7e39e9d4d152f31d1a3441b07c4b8be91c5 /src/openttd.cpp | |
parent | 1357b0a4c2c9cb2cf6d81a2cbc3e851d25c6c735 (diff) | |
download | openttd-3a0d966ae408aecc0bdad3325c1cc75927d58e89.tar.xz |
(svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus)
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r-- | src/openttd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index a8f08bb9c..488c969bd 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1110,9 +1110,7 @@ static void DoAutosave() #endif /* PSP */ if (_settings_client.gui.keep_all_autosave && _local_company != COMPANY_SPECTATOR) { - SetDParam(0, _local_company); - SetDParam(1, _date); - GetString(buf, STR_4004, lastof(buf)); + GenerateDefaultSaveName(buf, lastof(buf)); strecat(buf, ".sav", lastof(buf)); } else { /* generate a savegame name and number according to _settings_client.gui.max_num_autosaves */ |