plnsub: Let crewless planes spread the plague, too
Commit 612ec62
(v4.3.31) made plane crew and cargo spread the plague.
This requires looking for crew in build materials. Awkward if we ever
permit non-military crew.
Simply drop the "has crew" condition. If a plane's cargo can spread
it, then servicing and refueling the plane can spread it, too.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
3145e7d8a7
commit
e8b0e14d3d
1 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ pln_newlanding(struct emp_qelem *list, coord tx, coord ty, int cno)
|
|||
cname(player->cnum), prplane(&plp->plane),
|
||||
prship(&ship));
|
||||
}
|
||||
if (plp->pcp->pl_mat[I_MILIT] && plp->pstage == PLG_INFECT
|
||||
if (plp->pstage == PLG_INFECT
|
||||
&& ship.shp_pstage == PLG_HEALTHY)
|
||||
ship.shp_pstage = PLG_EXPOSED;
|
||||
}
|
||||
|
@ -253,7 +253,7 @@ pln_newlanding(struct emp_qelem *list, coord tx, coord ty, int cno)
|
|||
cname(player->cnum),
|
||||
prplane(&plp->plane), xyas(tx, ty, sect.sct_own));
|
||||
}
|
||||
if (plp->pcp->pl_mat[I_MILIT] && plp->pstage == PLG_INFECT
|
||||
if (plp->pstage == PLG_INFECT
|
||||
&& sect.sct_pstage == PLG_HEALTHY)
|
||||
sect.sct_pstage = PLG_EXPOSED;
|
||||
plp->plane.pln_ship = cno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue