Use snxtitem_xy() instead of snxtitem_dist(..., 0)

Affected: launch_as() and takeover().
This commit is contained in:
Markus Armbruster 2008-08-18 20:53:32 -04:00
parent 058cabfa3b
commit dce3ba7e2f
2 changed files with 3 additions and 3 deletions

View file

@ -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;