No need to take dead planes off carrier anymore

Until commit 3e370da5, dead planes had to be explicitely taken off
their carrier to update load counters.  This is no longer necessary;
simplify pln_put1() and scut().  scut() got it wrong, by the way: it
failed to take planes off land units.
This commit is contained in:
Markus Armbruster 2008-09-14 09:53:08 -04:00
parent 87c3ca9cca
commit 4478df7da6
2 changed files with 1 additions and 16 deletions

View file

@ -143,12 +143,6 @@ scut(void)
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);
}