From: Pasi Kallinen Date: Sat, 17 Oct 2020 13:48:07 +0000 (+0300) Subject: Fix thinko in reset travel dest condition X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc6b49130329409095c9c40f9ffe33e52c55d93f;p=nethack Fix thinko in reset travel dest condition --- 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; }