Fix: [CMake] Auto-fill version details in rev.cpp and ottres.rc (#9066)

This commit is contained in:
Loïc Guilloux
2021-04-20 21:38:46 +02:00
committed by GitHub
parent fe3cd185d7
commit d4f0b6f434
4 changed files with 19 additions and 4 deletions

View File

@@ -85,4 +85,4 @@ const byte _openttd_revision_tagged = ${REV_ISTAG};
* 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 | 12 << 24 | 0 << 20 | ${REV_ISSTABLETAG} << 19 | 28004;
const uint32 _openttd_newgrf_version = ${REV_MAJOR} << 28 | ${REV_MINOR} << 24 | ${REV_BUILD} << 20 | ${REV_ISSTABLETAG} << 19 | 28004;