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);
/*
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)
* 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;
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;
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";