diff options
author | yexo <yexo@openttd.org> | 2009-02-25 21:45:14 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-02-25 21:45:14 +0000 |
commit | fb7b0536e74d0cfdc682593657dfb66700f724e9 (patch) | |
tree | c5ec0bb4374465ba0001b47485225c72a9a21c15 /src/saveload | |
parent | c5684e56ec96f530178d7e66aebb830fe6829974 (diff) | |
download | openttd-fb7b0536e74d0cfdc682593657dfb66700f724e9.tar.xz |
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/misc_sl.cpp | 2 | ||||
-rw-r--r-- | src/saveload/saveload.cpp | 1 | ||||
-rw-r--r-- | src/saveload/saveload.h | 2 |
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 */ |