summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/misc_sl.cpp2
-rw-r--r--src/saveload/saveload.cpp1
-rw-r--r--src/saveload/saveload.h2
3 files changed, 5 insertions, 0 deletions
diff --git a/src/saveload/misc_sl.cpp b/src/saveload/misc_sl.cpp
index 74086f934..318f65f9d 100644
--- a/src/saveload/misc_sl.cpp
+++ b/src/saveload/misc_sl.cpp
@@ -13,6 +13,8 @@
#include "../window_func.h"
#include "../viewport_func.h"
#include "../gfx_func.h"
+#include "../company_base.h"
+#include "../town.h"
#include "saveload.h"
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index a7251ebd1..d93f7fe1f 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -45,6 +45,7 @@ SavegameType _savegame_type; ///< type of savegame we are loading
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
typedef void WriterProc(size_t len);
typedef size_t ReaderProc();
diff --git a/src/saveload/saveload.h b/src/saveload/saveload.h
index ad79eb907..cdfb275a8 100644
--- a/src/saveload/saveload.h
+++ b/src/saveload/saveload.h
@@ -331,4 +331,6 @@ void SlArray(void *array, size_t length, VarType conv);
void SlObject(void *object, const SaveLoad *sld);
bool SlObjectMember(void *object, const SaveLoad *sld);
+extern char _savegame_format[8];
+
#endif /* SAVELOAD_H */