summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-07-19 15:44:49 +0000
committerrubidium <rubidium@openttd.org>2010-07-19 15:44:49 +0000
commit45213e5708b3a8ece9fae32951d908db3bf5c732 (patch)
tree5d1f6dd0a73f04e02afec165b3569e2551cec27a /src/saveload
parent523d9358826cbeed6b13a85159498ef0760ba938 (diff)
downloadopenttd-45213e5708b3a8ece9fae32951d908db3bf5c732.tar.xz
(svn r20183) -Codechange: make _do_autosave and _dedicated_forks not use VARDEF and put them in a more logical location
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp1
-rw-r--r--src/saveload/saveload.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index a9d1e9f1e..ac84dd9a2 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -55,6 +55,7 @@ uint32 _ttdp_version; ///< version of TTDP savegame (if applicable)
uint16 _sl_version; ///< the major savegame version identifier
byte _sl_minor_version; ///< the minor savegame version, DO NOT USE!
char _savegame_format[8]; ///< how to compress savegames
+bool _do_autosave; ///< are we doing an autosave at the moment?
typedef void WriterProc(size_t len);
typedef size_t ReaderProc();
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index d3cb32dfc..32a9429e3 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -342,5 +342,6 @@ bool SlObjectMember(void *object, const SaveLoad *sld);
bool SaveloadCrashWithMissingNewGRFs();
extern char _savegame_format[8];
+extern bool _do_autosave;
#endif /* SAVELOAD_H */