]> granicus.if.org Git - nethack/commitdiff
remove prescient travel command behavior followup
authorcohrs <cohrs>
Sat, 13 Apr 2002 16:27:58 +0000 (16:27 +0000)
committercohrs <cohrs>
Sat, 13 Apr 2002 16:27:58 +0000 (16:27 +0000)
- applied an intermediate version of the fix which had a bug in choosing
the intermediate location

src/hack.c

index 7a579f386c4aca06baea422c5833bdbe53cf63e3..10984fe505ba3554ca20973f48b70c577e1ac827 100644 (file)
@@ -772,7 +772,7 @@ boolean guess;
                for (ty = 0; ty < ROWNO; ++ty)
                    if (travel[tx][ty]) {
                        d = distmin(ux, uy, tx, ty);
-                       if (d < dist && couldsee(ux, uy)) {
+                       if (d < dist && couldsee(tx, ty)) {
                            px = tx; py = ty; dist = d;
                        }
                    }