Enable the new nuk_on_plane(), replacing the old one
Callers changed, as the new one isn't a drop-in replacements.
This commit is contained in:
parent
64a53c90f0
commit
4086c25a15
6 changed files with 9 additions and 41 deletions
|
@ -1135,16 +1135,13 @@ pln_damage(struct plnstr *pp, coord x, coord y, char type, int *nukedamp,
|
|||
int effective = 1;
|
||||
int pinbomber = 0;
|
||||
|
||||
if (pp->pln_nuketype != -1) {
|
||||
if (nuk_on_plane(&nuke, pp->pln_uid) >= 0) {
|
||||
mpr(pp->pln_own, "Releasing RV's for %s detonation...\n",
|
||||
pp->pln_flags & PLN_AIRBURST ? "airburst" : "groundburst");
|
||||
pp->pln_nuketype = -1;
|
||||
*nukedamp = detonate(&nuke, x, y,
|
||||
pp->pln_flags & PLN_AIRBURST);
|
||||
return 0;
|
||||
}
|
||||
CANT_REACH();
|
||||
if (getnuke(nuk_on_plane(pp), &nuke)) {
|
||||
mpr(pp->pln_own, "Releasing RV's for %s detonation...\n",
|
||||
pp->pln_flags & PLN_AIRBURST ? "airburst" : "groundburst");
|
||||
pp->pln_nuketype = -1;
|
||||
*nukedamp = detonate(&nuke, x, y,
|
||||
pp->pln_flags & PLN_AIRBURST);
|
||||
return 0;
|
||||
}
|
||||
*nukedamp = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue