]> git.pond.sub.org Git - empserver/commitdiff
(msl_intercept): msl_hit() expects plain WHAT argument, without owner.
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 16:57:43 +0000 (16:57 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 16:57:43 +0000 (16:57 +0000)
Passing it with owner gets the owner printed twice.  Fix.

src/lib/subs/mslsub.c

index 0b5a21dfeb07ab4b077324daa30eaff7fe6d39bc..1f8a5ac2b004f7e1a363a52fcd8384b71ec921ee 100644 (file)
@@ -235,7 +235,6 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
     s_char *att_name;
     s_char *def_name;
     int news_item;
-    s_char what[512];
     s_char *who = sublaunch ? (s_char *)"" : cname(bombown);
 
     getsect(x, y, &sect);
@@ -259,7 +258,6 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
        def_name = "tomato";    /* heh -KHS */
        news_item = N_NUKE_STOP;
     }
-    sprintf(what, "%s %s", who, att_name);
     irvlist = &foo;
 
     /* get all hostile abms in range */
@@ -343,8 +341,8 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
        }
 
        if (!destroyed &&
-           msl_hit(pp, hardtarget, EF_PLANE, news_item, news_item, what,
-                   x, y, bombown)) {
+           msl_hit(pp, hardtarget, EF_PLANE, news_item, news_item,
+                   att_name, x, y, bombown)) {
            mpr(bombown, "%s destroyed by %s %s!\n", att_name,
                cname(pp->pln_own), def_name);
            if (sect.sct_own)