summaryrefslogtreecommitdiff
path: root/variables.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-11-17 19:43:37 +0000
committerbjarni <bjarni@openttd.org>2005-11-17 19:43:37 +0000
commiteba1f68439364236de7ae3c7792e2a87cfbcf670 (patch)
tree58b3df375737d146806314ed1b4a8e83dffbdac1 /variables.h
parent3e702afc08bd8118f5b01e6493fcdea1aea4c0d4 (diff)
downloadopenttd-eba1f68439364236de7ae3c7792e2a87cfbcf670.tar.xz
(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep before starting to overwrite old ones
max_autosave_num in the config files sets the number of autosaves to keep (default 16) MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given this behaviour can still be overwritten by keep_all_autosave (openttd.config setting) Note: this is a requested behaviour for PDA ports, since they got limited storage space
Diffstat (limited to 'variables.h')
-rw-r--r--variables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/variables.h b/variables.h
index ae1c3b61f..1e9bb99eb 100644
--- a/variables.h
+++ b/variables.h
@@ -155,6 +155,7 @@ typedef struct Patches {
bool keep_all_autosave; // name the autosave in a different way.
bool autosave_on_exit; // save an autosave when you quit the game, but do not ask "Do you really want to quit?"
+ byte max_num_autosaves; // controls how many autosavegames are made before the game starts to overwrite (names them 0 to max_num_autosaves - 1)
bool extra_dynamite; // extra dynamite
bool never_expire_vehicles; // never expire vehicles