Move "Releasing RV's" message into detonate()

This commit is contained in:
Markus Armbruster 2009-10-05 07:25:45 -04:00
parent a269cdd7e9
commit 42cc4f14e0
3 changed files with 7 additions and 11 deletions

View file

@ -260,12 +260,9 @@ launch_missile(struct plnstr *pp, int sublaunch)
#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));