(nuk_on_plane): Ignore destroyed nukes when searching for the nuke that

belongs to a particular plane.
This commit is contained in:
Ron Koenderink 2007-03-03 15:12:57 +00:00
parent 2437a7a551
commit 8babf97d81

View file

@ -115,6 +115,8 @@ nuk_on_plane(struct nukstr *np, int pluid)
snxtitem_all(&ni, EF_NUKE);
while (nxtitem(&ni, np)) {
if (np->nuk_own == 0)
continue;
if (np->nuk_plane == pluid)
return np->nuk_uid;
}