From: nethack.allison Date: Thu, 28 Aug 2003 11:19:08 +0000 (+0000) Subject: bits (from ) X-Git-Tag: MOVE2GIT~1828 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f1e7c828e66b21f3dcf9fce079f2e9a00cb0896;p=nethack bits (from ) - Guidebook typo - wizard mode prompt [...] > 2/3) In Guidebook* the lines subkeyval (Win32 tty NetHackonly). > May be used to alter the value of should read subkeyval (Win32 > tty NetHack only). May be used to alter the value of > > 3/3) I miss a hint for the new wizmode feature levelteleport by > menu. Neither wizhelp nor the dialog tell you about it. Maybe if > (++trycnt == 2) Strcat(qbuf, " [type a number or ?]"); in > teleport.c:589 could provide a hint. > > --- diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index f9b1a8839..6c68f05d2 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -2224,7 +2224,7 @@ Cannot be set with the `O' command. (default on, PC NetHack only). Cannot be set with the `O' command. .lp subkeyval -(Win32 tty NetHackonly). +(Win32 tty NetHack only). May be used to alter the value of keystrokes that the operating system returns to NetHack to help compensate for international keyboard issues. OPTIONS=subkeyvalue:171/92 diff --git a/src/teleport.c b/src/teleport.c index 2a8fd250e..1d8aecc5d 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -592,7 +592,13 @@ level_tele() Strcpy(qbuf, "To what level do you want to teleport?"); do { - if (++trycnt == 2) Strcat(qbuf, " [type a number]"); + if (++trycnt == 2) { +#ifdef WIZARD + if (wizard) Strcat(qbuf, " [type a number or ? for a menu]"); + else +#endif + Strcat(qbuf, " [type a number]"); + } getlin(qbuf, buf); if (!strcmp(buf,"\033")) { /* cancelled */ if (Confusion && rnl(5)) {