mirror of https://github.com/OpenTTD/OpenTTD
(svn r10807) -Fix [FS#1108]: keep_all_autosaves always got ".sav" as filename, which basically means that it only kept the last autosave.
parent
83e1fdcb01
commit
51f773bd16
|
@ -1023,7 +1023,7 @@ static void DoAutosave()
|
||||||
SetDParam(0, _local_player);
|
SetDParam(0, _local_player);
|
||||||
SetDParam(1, _date);
|
SetDParam(1, _date);
|
||||||
GetString(buf, STR_4004, lastof(buf));
|
GetString(buf, STR_4004, lastof(buf));
|
||||||
ttd_strlcpy(buf, ".sav", sizeof(buf));
|
ttd_strlcat(buf, ".sav", lengthof(buf));
|
||||||
} else {
|
} else {
|
||||||
/* generate a savegame name and number according to _patches.max_num_autosaves */
|
/* generate a savegame name and number according to _patches.max_num_autosaves */
|
||||||
snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);
|
snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);
|
||||||
|
|
Loading…
Reference in New Issue