mirror of https://github.com/OpenTTD/OpenTTD
(svn r15999) -Codechange: VARDEF--;
parent
ebe0f9e7f7
commit
7118c48b98
|
@ -1124,6 +1124,8 @@ static void DoAutosave()
|
||||||
GenerateDefaultSaveName(buf, lastof(buf));
|
GenerateDefaultSaveName(buf, lastof(buf));
|
||||||
strecat(buf, ".sav", lastof(buf));
|
strecat(buf, ".sav", lastof(buf));
|
||||||
} else {
|
} else {
|
||||||
|
static int _autosave_ctr = 0;
|
||||||
|
|
||||||
/* generate a savegame name and number according to _settings_client.gui.max_num_autosaves */
|
/* generate a savegame name and number according to _settings_client.gui.max_num_autosaves */
|
||||||
snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);
|
snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ VARDEF int _palette_animation_counter;
|
||||||
VARDEF uint32 _realtime_tick;
|
VARDEF uint32 _realtime_tick;
|
||||||
|
|
||||||
VARDEF bool _do_autosave;
|
VARDEF bool _do_autosave;
|
||||||
VARDEF int _autosave_ctr;
|
|
||||||
|
|
||||||
VARDEF byte _display_opt;
|
VARDEF byte _display_opt;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue