(svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus)

This commit is contained in:
rubidium
2009-01-02 22:49:43 +00:00
parent 1357b0a4c2
commit 3a0d966ae4
5 changed files with 22 additions and 19 deletions

View File

@@ -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 */