Fix messages in msl_launch()

This commit is contained in:
Markus Armbruster 2009-10-11 22:32:44 -04:00
parent 22071b4edb
commit 2178aa87f9

View file

@ -68,7 +68,7 @@ msl_launch(struct plnstr *pp, int type, char *what, coord x, coord y,
prplane(pp), prplane(pp),
cname(victim), cname(victim),
what, what,
(type == EF_SHIP || type == EF_PLANE) ? "in " : "", type != EF_SECTOR ? "in " : "",
xyas(x, y, pp->pln_own)); xyas(x, y, pp->pln_own));
mpr(pp->pln_own, "\tLaunching from "); mpr(pp->pln_own, "\tLaunching from ");
if (pp->pln_ship >= 0) { if (pp->pln_ship >= 0) {
@ -99,7 +99,7 @@ msl_launch(struct plnstr *pp, int type, char *what, coord x, coord y,
shipdamage(&ship, dam); shipdamage(&ship, dam);
putship(ship.shp_uid, &ship); putship(ship.shp_uid, &ship);
} else { } else {
pr("Explosion damages %s %d%%", pr("Explosion damages %s %d%%\n",
xyas(pp->pln_x, pp->pln_y, pp->pln_own), dam); xyas(pp->pln_x, pp->pln_y, pp->pln_own), dam);
getsect(pp->pln_x, pp->pln_y, &sect); getsect(pp->pln_x, pp->pln_y, &sect);
sectdamage(&sect, dam); sectdamage(&sect, dam);