wiz mode teleport starting destination selection

Ensure that the destination selection for intentional
teleport begins at the hero, rather than starting at
a place on the map stored from a prior travel command.
This commit is contained in:
nhmall
2024-12-10 13:39:55 -05:00
parent 548c021049
commit 175260807b

View File

@@ -1110,12 +1110,14 @@ dotele(
}
if (next_to_u()) {
if (trap && trap_once)
if (trap && trap_once) {
vault_tele();
else if (trap && isok(trap->teledest.x, trap->teledest.y))
} else if (trap && isok(trap->teledest.x, trap->teledest.y)) {
teleds(trap->teledest.x, trap->teledest.y, TELEDS_TELEPORT);
else
} else {
iflags.travelcc.x = iflags.travelcc.y = 0;
tele();
}
(void) next_to_u();
} else {
You("%s", shudder_for_moment);