(svn r15999) -Codechange: VARDEF--;
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user