(svn r22805) -Codechange: move use of magic number for version checking to more logical location
This commit is contained in:
@@ -10,8 +10,18 @@
|
||||
/** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "core/bitmath_func.hpp"
|
||||
#include "rev.h"
|
||||
|
||||
/**
|
||||
* Is this version of OpenTTD a release version?
|
||||
* @return True if it is a release version.
|
||||
*/
|
||||
bool IsReleasedVersion()
|
||||
{
|
||||
return HasBit(_openttd_newgrf_version, 19);
|
||||
}
|
||||
|
||||
/**
|
||||
* The text version of OpenTTD's revision.
|
||||
* This will be either "<major>.<minor>.<build>[-RC<rc>]",
|
||||
|
Reference in New Issue
Block a user