summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/version.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/version.cc')
-rw-r--r--crawl-ref/source/version.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/version.cc b/crawl-ref/source/version.cc
index a7cf9b0e21..5cfec287bc 100644
--- a/crawl-ref/source/version.cc
+++ b/crawl-ref/source/version.cc
@@ -21,5 +21,9 @@ check_revision::check_revision(const char *rev_str)
int svn_revision()
{
+#if BUILD_REVISION
+ return BUILD_REVISION;
+#else
return check_revision::max_rev;
+#endif
}