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