summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rev.cpp.in7
-rw-r--r--src/rev.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/rev.cpp.in b/src/rev.cpp.in
index 3c68e18eb..b4855d4cc 100644
--- a/src/rev.cpp.in
+++ b/src/rev.cpp.in
@@ -63,6 +63,13 @@ const char _openttd_revision_hash[] = "!!GITHASH!!";
const byte _openttd_revision_modified = !!MODIFIED!!;
/**
+ * Indicate whether this is a tagged version.
+ * If this is non-0, then _openttd_revision is the name of the tag,
+ * and the version is likely a beta, release candidate, or real release.
+ */
+const byte _openttd_revision_tagged = !!ISTAG!!;
+
+/**
* The NewGRF revision of OTTD:
* bits meaning.
* 28-31 major version
diff --git a/src/rev.h b/src/rev.h
index 55fc08699..55674cc80 100644
--- a/src/rev.h
+++ b/src/rev.h
@@ -16,6 +16,7 @@ extern const char _openttd_revision[];
extern const char _openttd_build_date[];
extern const char _openttd_revision_hash[];
extern const byte _openttd_revision_modified;
+extern const byte _openttd_revision_tagged;
extern const uint32 _openttd_newgrf_version;
bool IsReleasedVersion();