equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 /** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */ |
3 /** @file rev.cpp Autogenerated file with the revision and such of OpenTTD. */ |
4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
|
6 #include "rev.h" |
6 |
7 |
7 /** |
8 /** |
8 * The text version of OpenTTD's revision. |
9 * The text version of OpenTTD's revision. |
9 * This will be either "<major>.<minor>.<build>[-RC<rc>]", |
10 * This will be either "<major>.<minor>.<build>[-RC<rc>]", |
10 * "r<revision number>[M][-<branch>]" or "norev000". |
11 * "r<revision number>[M][-<branch>]" or "norev000". |
17 * branch the revision is of and will not be there when it is trunk. |
18 * branch the revision is of and will not be there when it is trunk. |
18 * |
19 * |
19 * norev000 is for non-releases that are made on systems without |
20 * norev000 is for non-releases that are made on systems without |
20 * subversion or sources that are not a checkout of subversion. |
21 * subversion or sources that are not a checkout of subversion. |
21 */ |
22 */ |
22 extern const char _openttd_revision[] = "@@VERSION@@"; |
23 const char _openttd_revision[] = "@@VERSION@@"; |
23 |
24 |
24 /** |
25 /** |
25 * The NewGRF revision of OTTD: |
26 * The NewGRF revision of OTTD: |
26 * bits meaning. |
27 * bits meaning. |
27 * 28-31 major version |
28 * 28-31 major version |
32 * |
33 * |
33 * The 19th bit is there so the development/betas/alpha, etc. leading to a |
34 * The 19th bit is there so the development/betas/alpha, etc. leading to a |
34 * final release will always have a lower version number than the released |
35 * final release will always have a lower version number than the released |
35 * version, thus making comparisions on specific revisions easy. |
36 * version, thus making comparisions on specific revisions easy. |
36 */ |
37 */ |
37 uint32 _openttd_newgrf_version = 0 << 28 | 7 << 24 | 0 << 20 | 0 << 19 | (@@REVISION@@ & ((1 << 19) - 1)); |
38 const uint32 _openttd_newgrf_version = 0 << 28 | 7 << 24 | 0 << 20 | 0 << 19 | (@@REVISION@@ & ((1 << 19) - 1)); |
38 |
39 |
39 #ifdef __MORPHOS__ |
40 #ifdef __MORPHOS__ |
40 /** |
41 /** |
41 * Variable used by MorphOS to show the version. |
42 * Variable used by MorphOS to show the version. |
42 */ |
43 */ |
43 extern const char morphos_versions_tag[] = "\\0$VER: OpenTTD @@VERSION@@ (@@DATE@@) OpenTTD Team [MorphOS, PowerPC]"; |
44 extern const char morphos_versions_tag[] = "$VER: OpenTTD @@VERSION@@ (@@DATE@@) OpenTTD Team [MorphOS, PowerPC]"; |
44 #endif |
45 #endif |