summaryrefslogtreecommitdiff
path: root/src/rev.cpp.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/rev.cpp.in')
-rw-r--r--src/rev.cpp.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rev.cpp.in b/src/rev.cpp.in
index e83c34771..21e084709 100644
--- a/src/rev.cpp.in
+++ b/src/rev.cpp.in
@@ -30,6 +30,14 @@
const char _openttd_revision[] = "!!VERSION!!";
/**
+ * The text version of OpenTTD's build date.
+ * Updating the build date in this file is the safest as it generally gets
+ * updated for each revision in contrary to most other files that only see
+ * updates when they are actually changed themselves.
+ */
+const char _openttd_build_date[] = __DATE__ " " __TIME__;
+
+/**
* Let us know if current build was modified. This detection
* works even in the case when revision string is overriden by
* --revision argument.