From 891af38b4911206634ae64e040db6854404a14c9 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 20 Feb 2006 19:12:46 +0000 Subject: (svn r3625) - Move sl_version inside the functions where they are used to force usage. --- saveload.h | 7 +++---- 1 file 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; } -- cgit v1.2.3-70-g09d2