(nuk_on_plane): Ignore destroyed nukes when searching for the nuke that
belongs to a particular plane.
This commit is contained in:
parent
2437a7a551
commit
8babf97d81
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue