more beta
BETA_INFO was being used in win32 code but it is only defined in version.c
This commit is contained in:
@@ -14,14 +14,18 @@
|
|||||||
#include "patchlevel.h"
|
#include "patchlevel.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BETA_INFO " [beta16]"
|
#define BETA_INFO "[beta16]"
|
||||||
|
|
||||||
/* fill and return the given buffer with the nethack version string */
|
/* fill and return the given buffer with the nethack version string */
|
||||||
char *
|
char *
|
||||||
getversionstring(buf)
|
getversionstring(buf)
|
||||||
char *buf;
|
char *buf;
|
||||||
{
|
{
|
||||||
return strcpy(buf, VERSION_ID);
|
Strcpy(buf, VERSION_ID);
|
||||||
|
#if defined(BETA) && defined(BETA_INFO)
|
||||||
|
Sprintf(eos(buf), " %s", BETA_INFO);
|
||||||
|
#endif
|
||||||
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -29,12 +33,7 @@ doversion()
|
|||||||
{
|
{
|
||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
|
|
||||||
pline("%s%s", getversionstring(buf),
|
pline("%s", getversionstring(buf));
|
||||||
#if defined(BETA) && defined(BETA_INFO)
|
|
||||||
BETA_INFO);
|
|
||||||
#else
|
|
||||||
"");
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,12 +85,6 @@ void mswin_display_splash_window (BOOL show_ver)
|
|||||||
char buf[BUFSZ];
|
char buf[BUFSZ];
|
||||||
|
|
||||||
getversionstring(buf);
|
getversionstring(buf);
|
||||||
sprintf(eos(buf), "%s",
|
|
||||||
#if defined(BETA) && defined(BETA_INFO)
|
|
||||||
BETA_INFO);
|
|
||||||
#else
|
|
||||||
"");
|
|
||||||
#endif
|
|
||||||
SetWindowText(GetDlgItem(hWnd, IDC_EXTRAINFO), buf);
|
SetWindowText(GetDlgItem(hWnd, IDC_EXTRAINFO), buf);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user