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
This commit is contained in:
nhmall
2026-05-04 09:06:52 -04:00
parent 60d59f4d55
commit 400c458fee
+7 -5
View File
@@ -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);