]> git.pond.sub.org Git - empserver/commitdiff
Don't attempt to hide owner of sub-launched satellite
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 10 Oct 2009 15:54:49 +0000 (11:54 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Dec 2009 07:03:51 +0000 (08:03 +0100)
The attempt was pointless, because the recipient of the message could
see the owner on skywatch, and the news reported it as well.

src/lib/commands/laun.c
src/lib/subs/mslsub.c

index cc574602471de022ae0afefcdb1ca2cec19f1d0f..11c1b88c87556455244c98a163fd74bac5e3560c 100644 (file)
@@ -48,7 +48,7 @@
 
 static int launch_as(struct plnstr *pp);
 static int launch_missile(struct plnstr *pp, int sublaunch);
-static int launch_sat(struct plnstr *pp, int sublaunch);
+static int launch_sat(struct plnstr *pp);
 static int msl_equip(struct plnstr *, char);
 
 /*
@@ -117,7 +117,7 @@ laun(void)
            retval = launch_as(&plane);
            gone = 1;
        } else {                /* satellites */
-           retval = launch_sat(&plane, sublaunch);
+           retval = launch_sat(&plane);
            gone = !(plane.pln_flags & PLN_LAUNCHED);
        }
        if (retval != RET_OK)
@@ -311,7 +311,7 @@ launch_missile(struct plnstr *pp, int sublaunch)
  * else RET_SYN or RET_FAIL.
  */
 static int
-launch_sat(struct plnstr *pp, int sublaunch)
+launch_sat(struct plnstr *pp)
 {
     struct plchrstr *pcp = plchr + pp->pln_type;
     coord sx, sy;
@@ -361,7 +361,7 @@ launch_sat(struct plnstr *pp, int sublaunch)
        pr("Your trajectory was a little off.\n");
     }
     nreport(player->cnum, N_LAUNCH, 0, 1);
-    if (msl_intercept(sx, sy, pp->pln_own, pcp->pl_def, sublaunch, P_O, 0)) {
+    if (msl_intercept(sx, sy, pp->pln_own, pcp->pl_def, 0, P_O, 0)) {
        return RET_OK;
     }
     pp->pln_x = sx;
index 8b0b3dabab360b4a926050e528e543e6aeefdac6..3bb8cb75ff91d5241b6a7ae33fd0b497f7d01a6b 100644 (file)
@@ -229,9 +229,9 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
        att_name = "satellite";
        def_name = "a-sat missile";
        news_item = N_SAT_KILL;
+       CANT_HAPPEN(sublaunch);
        mpr(sect.sct_own, "%s has positioned a satellite over %s\n",
-           sublaunch ? "someone" : cname(bombown),
-           xyas(x, y, sect.sct_own));
+           cname(bombown), xyas(x, y, sect.sct_own));
     } else if (wantflags == P_N && nowantflags == P_O) {
        att_name = "warhead";
        def_name = "abm";