From: PatR Date: Thu, 16 Jun 2016 07:01:06 +0000 (-0700) Subject: cmdhelp build bug X-Git-Tag: NetHack-3.6.1_RC01~671 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09326f03bf8297d9c44714177accfdd28a6d717b;p=nethack cmdhelp build bug dowhatdoes_core() was using iflags.altmeta unconditionally but its availability and usefulness is conditional upon #if ALTMETA. --- diff --git a/src/pager.c b/src/pager.c index f1dc84126..661cf04a5 100644 --- a/src/pager.c +++ b/src/pager.c @@ -1541,13 +1541,17 @@ dowhatdoes() if (!once) { pline("Ask about '&' or '?' to get more info.%s", - iflags.altmeta ? " (For ESC, type it twice.)" : ""); +#ifdef ALTMETA + iflags.altmeta ? " (For ESC, type it twice.)" : +#endif + ""); once = TRUE; } #if defined(UNIX) || defined(VMS) introff(); /* disables ^C but not ^\ */ #endif q = yn_function("What command?", (char *) 0, '\0'); +#ifdef ALTMETA if (q == '\033' && iflags.altmeta) { /* in an ideal world, we would know whether another keystroke was already pending, but this is not an ideal world... @@ -1557,6 +1561,7 @@ dowhatdoes() if (q != '\033') q = (char) ((uchar) q | 0200); } +#endif /*ALTMETA*/ #if defined(UNIX) || defined(VMS) intron(); /* reenables ^C */ #endif