From fc6b49130329409095c9c40f9ffe33e52c55d93f Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 17 Oct 2020 16:48:07 +0300 Subject: [PATCH] Fix thinko in reset travel dest condition --- src/teleport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/teleport.c b/src/teleport.c index f23643aeb..0e47f9735 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -540,7 +540,7 @@ struct obj *scroll; if (teleok(cc.x, cc.y, FALSE)) { /* for scroll, discover it regardless of destination */ teleds(cc.x, cc.y, TELEDS_TELEPORT); - if (iflags.travelcc.x == cc.x && iflags.travelcc.y == cc.y) + if (iflags.travelcc.x == u.ux && iflags.travelcc.y == u.uy) iflags.travelcc.x = iflags.travelcc.y = 0; return; } -- 2.50.1