]> git.pond.sub.org Git - empserver/commitdiff
Fix messages in msl_launch()
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 12 Oct 2009 02:32:44 +0000 (22:32 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Dec 2009 07:19:52 +0000 (08:19 +0100)
src/lib/subs/mslsub.c

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