diff options
author | Darkvater <Darkvater@openttd.org> | 2006-02-20 19:12:46 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-02-20 19:12:46 +0000 |
commit | 493e4d9ac5e68722b289e879a3c43a20e8e3b62a (patch) | |
tree | d8180492ba42b62a01de72a54eb2a83f0ed91471 | |
parent | c36746058a85c7c10eb2fb383fb04efd0c20acd9 (diff) | |
download | openttd-493e4d9ac5e68722b289e879a3c43a20e8e3b62a.tar.xz |
(svn r3625) - Move sl_version inside the functions where they are used to force usage.
-rw-r--r-- | saveload.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/saveload.h b/saveload.h index 266673dfb..bcd6c6ad7 100644 --- a/saveload.h +++ b/saveload.h @@ -53,10 +53,6 @@ typedef enum SLRefType { #define SL_MAX_VERSION 255 -extern uint16 _sl_version; /// the major savegame version identifier -extern byte _sl_minor_version; /// the minor savegame version, DO NOT USE! - - enum { INC_VEHICLE_COMMON = 0, }; @@ -172,6 +168,8 @@ typedef struct SaveLoad { */ static inline bool CheckSavegameVersionOldStyle(uint16 major, byte minor) { + extern uint16 _sl_version; + extern byte _sl_minor_version; return (_sl_version < major) || (_sl_version == major && _sl_minor_version < minor); } @@ -179,6 +177,7 @@ static inline bool CheckSavegameVersionOldStyle(uint16 major, byte minor) */ static inline bool CheckSavegameVersion(uint16 version) { + extern uint16 _sl_version; return _sl_version < version; } |