(add, plane_bomb, pinflak_planedamage, doship, dounit, doplane, laun)
(launch_sat, scra, scut, scuttle_ship, scuttle_land, knockdown) (ac_planedamage, detonate, attack_val, defense_val, air_damage) (msl_intercept, msl_launch_mindam, pln_prewrite, shp_prewrite): Simplify unit destruction: just zero efficiency, leave makelost() etc. to the prewrite callback.
This commit is contained in:
parent
1b94ddedc3
commit
0c1bd8e98b
14 changed files with 26 additions and 98 deletions
|
@ -123,9 +123,6 @@ pln_prewrite(int n, void *ptr)
|
|||
for (i = 0; NULL != (np = getnukep(i)); i++) {
|
||||
if (np->nuk_own && np->nuk_plane == n) {
|
||||
mpr(np->nuk_own, "%s lost!\n", prnuke(np));
|
||||
makelost(EF_NUKE, np->nuk_own, np->nuk_uid,
|
||||
np->nuk_x, np->nuk_y);
|
||||
np->nuk_own = 0;
|
||||
np->nuk_effic = 0;
|
||||
np->nuk_plane = -1;
|
||||
putnuke(np->nuk_uid, np);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue