diff options
-rw-r--r-- | crawl-ref/source/command.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/version.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/version.h | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 95159c5c26..55023f0af5 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -99,7 +99,7 @@ static const char *features[] = { static std::string _get_version_information(void) { std::string result = "This is <w>" CRAWL " " VERSION "</w> ("; -#ifdef BUILD_REVISION +#ifdef DISPLAY_BUILD_REVISION result += "r" + number_to_string(svn_revision()) + ", "; #endif result += VERSION_DETAIL ")."; 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 } diff --git a/crawl-ref/source/version.h b/crawl-ref/source/version.h index eec4da025c..1670367082 100644 --- a/crawl-ref/source/version.h +++ b/crawl-ref/source/version.h @@ -36,7 +36,7 @@ #define VER_QUAL "-svn" // Undefine for official releases. -#define BUILD_REVISION +#define DISPLAY_BUILD_REVISION // last updated 07august2001 {mv} /* *********************************************************************** |