From: nethack.allison Date: Mon, 30 Sep 2002 02:15:54 +0000 (+0000) Subject: Allow the 'v' command to identify the beta version X-Git-Tag: MOVE2GIT~2401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0e61692ec8ad476bc08f035ac65f3b84a64da73;p=nethack Allow the 'v' command to identify the beta version in a way that won't trigger a full rebuild. --- diff --git a/src/version.c b/src/version.c index 3b0c8077b..0091406fb 100644 --- a/src/version.c +++ b/src/version.c @@ -14,6 +14,8 @@ #include "patchlevel.h" #endif +#define BETA_INFO " [beta12]" + /* fill and return the given buffer with the nethack version string */ char * getversionstring(buf) @@ -27,7 +29,12 @@ doversion() { char buf[BUFSZ]; - pline(getversionstring(buf)); + pline("%s%s", getversionstring(buf), +#if defined(BETA) && defined(BETA_INFO) + BETA_INFO); +#else + ""); +#endif return 0; }