beta bit
Display the word beta in a better spot on the line
This commit is contained in:
+9
-5
@@ -1192,18 +1192,22 @@ char *outbuf;
|
|||||||
const char *build_date;
|
const char *build_date;
|
||||||
{
|
{
|
||||||
char subbuf[64], versbuf[64];
|
char subbuf[64], versbuf[64];
|
||||||
|
char betabuf[64];
|
||||||
|
|
||||||
|
#ifdef BETA
|
||||||
|
Strcpy(betabuf, "Beta");
|
||||||
|
#else
|
||||||
|
betabuf[0] = '\0';
|
||||||
|
#endif
|
||||||
|
|
||||||
subbuf[0] = '\0';
|
subbuf[0] = '\0';
|
||||||
#ifdef PORT_SUB_ID
|
#ifdef PORT_SUB_ID
|
||||||
subbuf[0] = ' ';
|
subbuf[0] = ' ';
|
||||||
Strcpy(&subbuf[1], PORT_SUB_ID);
|
Strcpy(&subbuf[1], PORT_SUB_ID);
|
||||||
#endif
|
#endif
|
||||||
#ifdef BETA
|
|
||||||
Strcat(subbuf, " Beta");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
Sprintf(outbuf, "%s NetHack%s Version %s - last %s %s.", PORT_ID,
|
Sprintf(outbuf, "%s NetHack%s Version %s %s - last %s %s.", PORT_ID,
|
||||||
subbuf, version_string(versbuf, "."),
|
subbuf, version_string(versbuf, "."), betabuf,
|
||||||
date_via_env ? "revision" : "build", build_date);
|
date_via_env ? "revision" : "build", build_date);
|
||||||
return outbuf;
|
return outbuf;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user