]> granicus.if.org Git - nethack/commitdiff
Fix thinko in reset travel dest condition
authorPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2020 13:48:07 +0000 (16:48 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 17 Oct 2020 13:48:07 +0000 (16:48 +0300)
src/teleport.c

index f23643aebf065332dd4432903ac524b422bdf9ae..0e47f97358a1e9c4e946413fed7b35e3c4b0be90 100644 (file)
@@ -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;
             }