From 175260807b0db7a83cc4f45899f9779ee10388e5 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 10 Dec 2024 13:39:55 -0500 Subject: [PATCH] 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. --- src/teleport.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/teleport.c b/src/teleport.c index 5b51a3a0a..422a087ac 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -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);