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:
@@ -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])) &&
|
||||
|
||||
Reference in New Issue
Block a user