(svn r21284) -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user