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.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/version.cc b/crawl-ref/source/version.cc
index 3ab89fff41..a7cf9b0e21 100644
--- a/crawl-ref/source/version.cc
+++ b/crawl-ref/source/version.cc
@@ -7,14 +7,15 @@
*/
#include "AppHdr.h"
-#include "version.h"
-
-REVISION("$Rev$")
+REVISION("$Rev$");
int check_revision::max_rev = 0;
-check_revision::check_revision(int rev)
+check_revision::check_revision(const char *rev_str)
{
+ ASSERT(!strncmp("$Rev:", rev_str, 4));
+
+ int rev = atoi(&rev_str[5]);
max_rev = std::max(rev, max_rev);
}