(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().

This commit is contained in:
alberth
2010-11-21 12:47:04 +00:00
parent 5f8afaadb7
commit 3e27739287
20 changed files with 148 additions and 159 deletions

View File

@@ -460,17 +460,6 @@ static inline bool IsSavegameVersionBefore(uint16 major, byte minor = 0)
return _sl_version < major || (minor > 0 && _sl_version == major && _sl_minor_version < minor);
}
/**
* Checks if the savegame is below \a version.
* @param version First version that is too large.
* @return Savegame version equal or larger than \a version.
*/
static inline bool CheckSavegameVersion(uint16 version)
{
extern uint16 _sl_version;
return _sl_version < version;
}
/**
* Checks if some version from/to combination falls within the range of the
* active savegame version.