Allow the 'v' command to identify the beta version

in a way that won't trigger a full rebuild.
This commit is contained in:
nethack.allison
2002-09-30 02:15:54 +00:00
parent d64759dd6c
commit a0e61692ec

View File

@@ -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;
}