From 5ddafa5c81df07553b5ebe5bfc01e6502baec243 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 17 Oct 2020 12:13:17 +0300 Subject: [PATCH] Only reset if we actually went to travel destination --- src/teleport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/teleport.c b/src/teleport.c index 8157f512c..f23643aeb 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -540,7 +540,8 @@ struct obj *scroll; if (teleok(cc.x, cc.y, FALSE)) { /* for scroll, discover it regardless of destination */ teleds(cc.x, cc.y, TELEDS_TELEPORT); - iflags.travelcc.x = iflags.travelcc.y = 0; + if (iflags.travelcc.x == cc.x && iflags.travelcc.y == cc.y) + iflags.travelcc.x = iflags.travelcc.y = 0; return; } pline("Sorry..."); -- 2.50.1