diff options
author | rubidium <rubidium@openttd.org> | 2009-04-09 01:22:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-09 01:22:33 +0000 |
commit | 7118c48b98a910a66571755a90acaa9a4253d4a8 (patch) | |
tree | 09682a1dfadfd57be926e91706b4c781ec5952dd /src | |
parent | ebe0f9e7f7a62d6eef467180ce3fad749e7ce8b7 (diff) | |
download | openttd-7118c48b98a910a66571755a90acaa9a4253d4a8.tar.xz |
(svn r15999) -Codechange: VARDEF--;
Diffstat (limited to 'src')
-rw-r--r-- | src/openttd.cpp | 2 | ||||
-rw-r--r-- | src/variables.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index 8f61574fa..be74b3b6e 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -1124,6 +1124,8 @@ static void DoAutosave() GenerateDefaultSaveName(buf, lastof(buf)); strecat(buf, ".sav", lastof(buf)); } else { + static int _autosave_ctr = 0; + /* generate a savegame name and number according to _settings_client.gui.max_num_autosaves */ snprintf(buf, sizeof(buf), "autosave%d.sav", _autosave_ctr); diff --git a/src/variables.h b/src/variables.h index 3325369dc..5ef2d9c50 100644 --- a/src/variables.h +++ b/src/variables.h @@ -31,7 +31,6 @@ VARDEF int _palette_animation_counter; VARDEF uint32 _realtime_tick; VARDEF bool _do_autosave; -VARDEF int _autosave_ctr; VARDEF byte _display_opt; |