for (qp = list->q_forw; qp != list; qp = qp->q_forw) {
plp = (struct plist *)qp;
- if (getnuke(nuk_on_plane(&plp->plane), &nuke)) {
- mpr(plp->plane.pln_own,
- "Releasing RV's for %s detonation...\n",
- plp->plane.pln_flags & PLN_AIRBURST
- ? "airburst" : "groundburst");
+ if (getnuke(nuk_on_plane(&plp->plane), &nuke))
detonate(&nuke, target->sct_x, target->sct_y,
plp->plane.pln_flags & PLN_AIRBURST);
- } else
+ else
dam += pln_damage(&plp->plane, 's', 1);
}
if (dam <= 0) /* dam == 0 if only nukes were delivered */
#endif
return RET_OK;
}
- 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");
+ if (getnuke(nuk_on_plane(pp), &nuke))
detonate(&nuke, sx, sy, pp->pln_flags & PLN_AIRBURST);
- } else {
+ else {
dam = pln_damage(pp, 's', 1);
pr("did %d damage in %s\n", PERCENT_DAMAGE(dam),
xyas(sx, sy, player->cnum));
struct nstr_item ni;
int issea;
+ mpr(bombown, "Releasing RV's for %s detonation...\n",
+ airburst ? "airburst" : "groundburst");
+
getsect(x, y, §);
issea = sect.sct_type == SCT_WATER;
ncp = &nchr[nuketype];