scuttle_land(&item.land);
} else {
pr("%s", prplane(&item.plane));
- if (item.plane.pln_ship >= 0) {
- struct shpstr ship;
-
- getship(item.plane.pln_ship, &ship);
- take_plane_off_ship(&item.plane, &ship);
- }
item.plane.pln_effic = 0;
putplane(item.plane.pln_uid, &item.plane);
}
{
struct plnstr *pp;
struct shpstr ship;
- struct lndstr land;
struct sctstr sect;
pp = &plp->plane;
if (!(pp->pln_flags & PLN_LAUNCHED))
; /* never took off */
else if (pp->pln_effic < PLANE_MINEFF) {
- /* destroyed */
- if (pp->pln_ship >= 0) {
- getship(pp->pln_ship, &ship);
- take_plane_off_ship(pp, &ship);
- }
- if (pp->pln_land >= 0) {
- getland(pp->pln_land, &land);
- take_plane_off_land(pp, &land);
- }
+ ; /* destroyed */
} else if (pp->pln_ship >= 0) {
/* It is landing on a carrier */
getship(pp->pln_ship, &ship);