Comment why collateral damage for missing missile is disabled
It was added in 4.0.17, and disabled in 4.0.18. info Empire4 proudly notes the former, but not the latter.
This commit is contained in:
parent
d2250f43e9
commit
fa7e3aa9be
1 changed files with 11 additions and 6 deletions
|
@ -275,10 +275,15 @@ launch_missile(struct plnstr *pp, int sublaunch)
|
||||||
}
|
}
|
||||||
if (!msl_hit(pp, SECT_HARDTARGET, EF_SECTOR, N_SCT_MISS,
|
if (!msl_hit(pp, SECT_HARDTARGET, EF_SECTOR, N_SCT_MISS,
|
||||||
N_SCT_SMISS, "sector", sx, sy, sect.sct_own)) {
|
N_SCT_SMISS, "sector", sx, sy, sect.sct_own)) {
|
||||||
|
#if 0
|
||||||
/*
|
/*
|
||||||
|
* FIXME want collateral damage on miss (which can't
|
||||||
|
* happen for nuclear war heads), but we get here too when
|
||||||
|
* launch fails or missile is intercepted
|
||||||
|
*/
|
||||||
dam = pln_damage(pp, sect.sct_x, sect.sct_y, 's', &nukedam, 0);
|
dam = pln_damage(pp, sect.sct_x, sect.sct_y, 's', &nukedam, 0);
|
||||||
collateral_damage(sect.sct_x, sect.sct_y, dam, 0);
|
collateral_damage(sect.sct_x, sect.sct_y, dam, 0);
|
||||||
*/
|
#endif
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
dam = pln_damage(pp, sect.sct_x, sect.sct_y, 's', &nukedam, 1);
|
dam = pln_damage(pp, sect.sct_x, sect.sct_y, 's', &nukedam, 1);
|
||||||
|
@ -306,10 +311,10 @@ launch_missile(struct plnstr *pp, int sublaunch)
|
||||||
target_ship.shp_x, target_ship.shp_y,
|
target_ship.shp_x, target_ship.shp_y,
|
||||||
target_ship.shp_own)) {
|
target_ship.shp_own)) {
|
||||||
pr("splash\n");
|
pr("splash\n");
|
||||||
/*
|
#if 0 /* FIXME see above */
|
||||||
dam = pln_damage(pp,target_ship.shp_x,target_ship.shp_y,'p',&nukedam, 0);
|
dam = pln_damage(pp,target_ship.shp_x,target_ship.shp_y,'p',&nukedam, 0);
|
||||||
collateral_damage(target_ship.shp_x, target_ship.shp_y, dam, 0);
|
collateral_damage(target_ship.shp_x, target_ship.shp_y, dam, 0);
|
||||||
*/
|
#endif
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
dam = pln_damage(pp, target_ship.shp_x, target_ship.shp_y, 'p',
|
dam = pln_damage(pp, target_ship.shp_x, target_ship.shp_y, 'p',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue