Fix thinko in reset travel dest condition

This commit is contained in:
Pasi Kallinen
2020-10-17 16:48:07 +03:00
parent 5ddafa5c81
commit fc6b491303

View 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;
}