Merge branch 'cpp-11' into crashlog_improvements
# Conflicts: # Makefile.src.in # src/crashlog.cpp # src/crashlog.h
This commit is contained in:
@@ -26,18 +26,16 @@ bool IsReleasedVersion()
|
||||
|
||||
/**
|
||||
* The text version of OpenTTD's revision.
|
||||
* This will be either "<major>.<minor>.<build>[-RC<rc>]",
|
||||
* "r<revision number>[M][-<branch>]" or "norev000".
|
||||
* This will be either
|
||||
* - "<tag>", like "<major>.<minor>.<build>[-RC<rc>]",
|
||||
* - "<commitdate>-g<shorthash><modified>" in "master",
|
||||
* - "<commitdate>-<branch>-g<shorthash><modified>" in other branches, or
|
||||
* - "norev000", if the version is unknown.
|
||||
*
|
||||
* The major, minor and build are the numbers that describe releases of
|
||||
* OpenTTD (like 0.5.3). "-RC" is used to flag release candidates.
|
||||
*
|
||||
* The revision number is fairly straight forward. The M is to show that
|
||||
* the binary is made from modified source code. The branch shows the
|
||||
* branch the revision is of and will not be there when it is trunk.
|
||||
*
|
||||
* norev000 is for non-releases that are made on systems without
|
||||
* subversion or sources that are not a checkout of subversion.
|
||||
* <modified> shows a "M", if the binary is made from modified source code.
|
||||
*/
|
||||
const char _openttd_revision[] = "!!VERSION!!";
|
||||
|
||||
@@ -72,13 +70,13 @@ const byte _openttd_revision_modified = !!MODIFIED!!;
|
||||
* 24-27 minor version
|
||||
* 20-23 build
|
||||
* 19 1 if it is a release, 0 if it is not.
|
||||
* 0-18 revision number; 0 for releases and when the revision is unknown.
|
||||
* 0-18 used to be the SVN revision, currently unused
|
||||
*
|
||||
* The 19th bit is there so the development/betas/alpha, etc. leading to a
|
||||
* final release will always have a lower version number than the released
|
||||
* version, thus making comparisons on specific revisions easy.
|
||||
*/
|
||||
const uint32 _openttd_newgrf_version = 1 << 28 | 8 << 24 | 0 << 20 | 0 << 19 | (!!REVISION!! & ((1 << 19) - 1));
|
||||
const uint32 _openttd_newgrf_version = 1 << 28 | 9 << 24 | 0 << 20 | 0 << 19;
|
||||
|
||||
#ifdef __MORPHOS__
|
||||
/**
|
||||
|
Reference in New Issue
Block a user