remove prescient travel command behavior followup
- applied an intermediate version of the fix which had a bug in choosing the intermediate location
This commit is contained in:
+1
-1
@@ -772,7 +772,7 @@ boolean guess;
|
|||||||
for (ty = 0; ty < ROWNO; ++ty)
|
for (ty = 0; ty < ROWNO; ++ty)
|
||||||
if (travel[tx][ty]) {
|
if (travel[tx][ty]) {
|
||||||
d = distmin(ux, uy, 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;
|
px = tx; py = ty; dist = d;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user