From 400c458feef0c095451c8e7e7222eb4385bafced Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 4 May 2026 09:06:52 -0400 Subject: [PATCH] fix copyright release details GitHub issue https://github.com/NetHack/NetHack/issues/1513 Starting a new game, at the 'Shall I pick character's race, role, gender and alignment for you? [ynaq]' prompt, the game shows as 'Version 5.0.0-0 Unix Work-in-progress' but then once the game has started and you check #version you see the correct 'Unix NetHack Version 5.0.0-0 post-release' feedback. Closes #1513 --- src/mdlib.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/mdlib.c b/src/mdlib.c index 9096f6ee3..ebc3630be 100644 --- a/src/mdlib.c +++ b/src/mdlib.c @@ -355,14 +355,16 @@ bannerc_string(char *outbuf, size_t bufsz, const char *build_date) subbuf[0] = ' '; Strcpy(&subbuf[1], PORT_SUB_ID); #endif + #if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) #if (NH_DEVEL_STATUS == NH_STATUS_BETA) - Strcat(subbuf, " Beta"); -#else - Strcat(subbuf, " Work-in-progress"); + Strcpy(subbuf, " Beta"); +#elif (NH_DEVEL_STATUS == NH_STATUS_WIP) + Strcpy(subbuf, " Work-in-progress"); +#elif (NH_DEVEL_STATUS == NH_STATUS_POSTRELEASE) + Strcpy(subbuf, " post-release"); #endif -#endif - +#endif /* !NH_STATUS_RELEASED */ Snprintf(outbuf, bufsz, " Version %s %s%s, %s %s.", mdlib_version_string(versbuf, "."), PORT_ID, subbuf, date_via_env ? "revised" : "built", build_date);