From fb7b0536e74d0cfdc682593657dfb66700f724e9 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 25 Feb 2009 21:45:14 +0000 Subject: (svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers. --- src/saveload/misc_sl.cpp | 2 ++ src/saveload/saveload.cpp | 1 + src/saveload/saveload.h | 2 ++ 3 files changed, 5 insertions(+) (limited to 'src/saveload') 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 */ -- cgit v1.2.3-70-g09d2