wizmode level teleport via menu

If you answer '?' to the level teleport prompt
in debug mode, you get a menu to choose
from, similar to the control-O print_dungeon
display.
This commit is contained in:
nethack.allison
2003-08-17 19:10:52 +00:00
parent 95e4443c11
commit 82e8dd3247
6 changed files with 86 additions and 15 deletions

View File

@@ -606,6 +606,11 @@ level_tele()
pline("Oops...");
goto random_levtport;
}
#ifdef WIZARD
if (wizard && !strcmp(buf,"?")) {
newlev = print_dungeon(TRUE);
} else
#endif
if ((newlev = lev_by_name(buf)) == 0) newlev = atoi(buf);
} while (!newlev && !digit(buf[0]) &&
(buf[0] != '-' || !digit(buf[1])) &&