From 7118c48b98a910a66571755a90acaa9a4253d4a8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 9 Apr 2009 01:22:33 +0000 Subject: (svn r15999) -Codechange: VARDEF--; --- src/openttd.cpp | 2 ++ src/variables.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2