Merge branch 'NetHack-3.6'
This commit is contained in:
@@ -569,11 +569,11 @@ extcmd_via_menu()
|
||||
if ((len = (int) strlen(efp->ef_desc)) > biggest)
|
||||
biggest = len;
|
||||
if (++i > MAX_EXT_CMD) {
|
||||
#if defined(BETA)
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
impossible(
|
||||
"Exceeded %d extended commands in doextcmd() menu; 'extmenu' disabled.",
|
||||
MAX_EXT_CMD);
|
||||
#endif /* BETA */
|
||||
#endif /* NH_DEVEL_STATUS != NH_STATUS_RELEASED */
|
||||
iflags.extmenu = 0;
|
||||
return -1;
|
||||
}
|
||||
@@ -647,7 +647,7 @@ extcmd_via_menu()
|
||||
if (n == 1) {
|
||||
if (matchlevel > (QBUFSZ - 2)) {
|
||||
free((genericptr_t) pick_list);
|
||||
#if defined(BETA)
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
impossible("Too many chars (%d) entered in extcmd_via_menu()",
|
||||
matchlevel);
|
||||
#endif
|
||||
|
||||
@@ -467,7 +467,8 @@ long nmv; /* number of moves */
|
||||
{
|
||||
int imv = 0; /* avoid zillions of casts and lint warnings */
|
||||
|
||||
#if defined(DEBUG) || defined(BETA)
|
||||
#if defined(DEBUG) || (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
|
||||
if (nmv < 0L) { /* crash likely... */
|
||||
panic("catchup from future time?");
|
||||
/*NOTREACHED*/
|
||||
|
||||
@@ -2476,7 +2476,7 @@ STATIC_OVL void
|
||||
sanity_check_worn(obj)
|
||||
struct obj *obj;
|
||||
{
|
||||
#if defined(BETA) || defined(DEBUG)
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) || defined(DEBUG)
|
||||
static unsigned long wearbits[] = {
|
||||
W_ARM, W_ARMC, W_ARMH, W_ARMS, W_ARMG, W_ARMF, W_ARMU,
|
||||
W_WEP, W_QUIVER, W_SWAPWEP, W_AMUL, W_RINGL, W_RINGR, W_TOOL,
|
||||
@@ -2659,7 +2659,7 @@ struct obj *obj;
|
||||
insane_object(obj, ofmt0, maskbuf, mon);
|
||||
}
|
||||
}
|
||||
#else /* not (BETA || DEBUG) */
|
||||
#else /* not (NH_DEVEL_STATUS != NH_STATUS_RELEASED) || DEBUG) */
|
||||
/* dummy use of obj to avoid "arg not used" complaint */
|
||||
if (!obj)
|
||||
insane_object(obj, ofmt0, "<null>", (struct monst *) 0);
|
||||
|
||||
@@ -556,7 +556,7 @@ int how;
|
||||
if (qt_msg->summary_size) {
|
||||
(void) dlb_fgets(in_line, sizeof in_line, g.msg_file);
|
||||
convert_line(in_line, out_line);
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
} else if (qt_msg->delivery == 'c') { /* skip for 'qtdump' of 'p' */
|
||||
/* delivery 'c' and !summary_size, summary expected but not present;
|
||||
this doesn't prefix the number with role code vs 'general'
|
||||
|
||||
@@ -101,7 +101,7 @@ int
|
||||
rn2(x)
|
||||
register int x;
|
||||
{
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
if (x <= 0) {
|
||||
impossible("rn2(%d) attempted", x);
|
||||
return 0;
|
||||
@@ -121,7 +121,7 @@ register int x;
|
||||
{
|
||||
register int i, adjustment;
|
||||
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
if (x <= 0) {
|
||||
impossible("rnl(%d) attempted", x);
|
||||
return 0;
|
||||
@@ -163,7 +163,7 @@ int
|
||||
rnd(x)
|
||||
register int x;
|
||||
{
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
if (x <= 0) {
|
||||
impossible("rnd(%d) attempted", x);
|
||||
return 1;
|
||||
@@ -180,7 +180,7 @@ register int n, x;
|
||||
{
|
||||
register int tmp = n;
|
||||
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
if (x < 0 || n < 0 || (x == 0 && n != 0)) {
|
||||
impossible("d(%d,%d) attempted", n, x);
|
||||
return 1;
|
||||
|
||||
@@ -63,7 +63,7 @@ sys_early_init()
|
||||
/* panic options */
|
||||
sysopt.gdbpath = dupstr(GDBPATH);
|
||||
sysopt.greppath = dupstr(GREPPATH);
|
||||
#ifdef BETA
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
sysopt.panictrace_gdb = 1;
|
||||
#ifdef PANICTRACE_LIBC
|
||||
sysopt.panictrace_libc = 2;
|
||||
|
||||
@@ -63,7 +63,7 @@ char *buf;
|
||||
Sprintf(eos(buf), "%s%s", c++ ? "," : "", NetHack_git_sha);
|
||||
#endif
|
||||
#if defined(NETHACK_GIT_BRANCH)
|
||||
#if defined(BETA)
|
||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||
if (NetHack_git_branch)
|
||||
Sprintf(eos(buf), "%sbranch:%s",
|
||||
c++ ? "," : "", NetHack_git_branch);
|
||||
|
||||
Reference in New Issue
Block a user