Use snxtitem_xy() instead of snxtitem_dist(..., 0)
Affected: launch_as() and takeover().
This commit is contained in:
parent
058cabfa3b
commit
dce3ba7e2f
2 changed files with 3 additions and 3 deletions
|
@ -158,7 +158,7 @@ launch_as(struct plnstr *pp)
|
|||
return RET_FAIL;
|
||||
}
|
||||
goodtarget = 0;
|
||||
snxtitem_dist(&ni, EF_PLANE, sx, sy, 0);
|
||||
snxtitem_xy(&ni, EF_PLANE, sx, sy);
|
||||
while (!goodtarget && nxtitem(&ni, &plane)) {
|
||||
if (!plane.pln_own)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue