]> git.pond.sub.org Git - empserver/commitdiff
Enable marine msl. unconditionally, remove option PINPOINTMISSILE
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Sep 2009 15:37:17 +0000 (11:37 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 8 Dec 2009 07:15:50 +0000 (08:15 +0100)
Deities can still control them by customizing table plane-chr.

include/econfig-spec.h
info/Options.t
info/version.t
src/lib/commands/laun.c
src/lib/global/options.c
src/lib/subs/mslsub.c

index b65aa04bbc853f6609aa6801dad09839fc631aff..9d14cc48ef1eaccbe7c9906eaaebda604305acf8 100644 (file)
@@ -175,8 +175,6 @@ EMPCF_OPT("NO_FORT_FIRE", opt_NO_FORT_FIRE,
     "Disable fortress fire")
 EMPCF_OPT("NO_PLAGUE", opt_NO_PLAGUE,
     "Disable plague")
     "Disable fortress fire")
 EMPCF_OPT("NO_PLAGUE", opt_NO_PLAGUE,
     "Disable plague")
-EMPCF_OPT("PINPOINTMISSILE", opt_PINPOINTMISSILE,
-    "Enable marine missiles")
 EMPCF_OPT("RAILWAYS", opt_RAILWAYS,
     "Highways double as rail")
 EMPCF_OPT("RES_POP", opt_RES_POP,
 EMPCF_OPT("RAILWAYS", opt_RAILWAYS,
     "Highways double as rail")
 EMPCF_OPT("RES_POP", opt_RES_POP,
index e70591939f50cdcbedeaff74add228d6c1c4c86b..811f121ed477a0e22eaafcb1817efadab18e2ca5 100644 (file)
@@ -4,7 +4,6 @@
 .nf
 The following options are from KSU code:
 
 .nf
 The following options are from KSU code:
 
-PINPOINT(etc): Missile exist which target ships instead of sectors
 SAIL:          another way to automatically move ships (may also be buggy)
 
 The following options were introduced in the Chainsaw server:
 SAIL:          another way to automatically move ships (may also be buggy)
 
 The following options were introduced in the Chainsaw server:
index a7924c9c7bb3c5124ce3591a2fca47655ef0e7e6..89eec22827017672bd59723f3642646070de2902 100644 (file)
@@ -76,8 +76,8 @@ You are disconnected after 15 minutes of idle time.
 
 Options enabled in this game:
        ALL_BLEED, BLITZ, BRIDGETOWERS, EASY_BRIDGES, FALLOUT, GODNEWS,
 
 Options enabled in this game:
        ALL_BLEED, BLITZ, BRIDGETOWERS, EASY_BRIDGES, FALLOUT, GODNEWS,
-       INTERDICT_ATT, LANDSPIES, NOFOOD, NOMOBCOST, NO_PLAGUE,
-       PINPOINTMISSILE, RAILWAYS, SAIL, TREATIES
+       INTERDICT_ATT, LANDSPIES, NOFOOD, NOMOBCOST, NO_PLAGUE, RAILWAYS, SAIL,
+       TREATIES
 
 Options disabled in this game:
        AUTO_POWER, GO_RENEW, GUINEA_PIGS, HIDDEN, LOANS, LOSE_CONTACT, MARKET,
 
 Options disabled in this game:
        AUTO_POWER, GO_RENEW, GUINEA_PIGS, HIDDEN, LOANS, LOSE_CONTACT, MARKET,
index 86b21c5e3309a8852acb49efefbf893dbcd02ae4..cfd05db0cc727cbb23557865d3883fff4b9d807c 100644 (file)
@@ -222,7 +222,7 @@ launch_missile(struct plnstr *pp, int sublaunch)
        return RET_SYN;
     if (!check_plane_ok(pp))
        return RET_FAIL;
        return RET_SYN;
     if (!check_plane_ok(pp))
        return RET_FAIL;
-    if (opt_PINPOINTMISSILE && sarg_type(cp) == NS_LIST) {
+    if (sarg_type(cp) == NS_LIST) {
        if (!(pcp->pl_flags & P_MAR)) {
            pr("Missile not designed to attack ships!\n");
            return RET_FAIL;
        if (!(pcp->pl_flags & P_MAR)) {
            pr("Missile not designed to attack ships!\n");
            return RET_FAIL;
@@ -240,17 +240,16 @@ launch_missile(struct plnstr *pp, int sublaunch)
            pr("Bad ship number!\n");
            return RET_FAIL;
        }
            pr("Bad ship number!\n");
            return RET_FAIL;
        }
-    } /* not PINPOINTMISSILE for ships */
-    else if (!sarg_xy(cp, &sx, &sy)) {
+    } else if (!sarg_xy(cp, &sx, &sy)) {
        pr("Not a sector!\n");
        return RET_FAIL;
        pr("Not a sector!\n");
        return RET_FAIL;
-    } else if (opt_PINPOINTMISSILE) {
+    } else {
        if (pcp->pl_flags & P_MAR) {
            pr("Missile designed to attack ships!\n");
            return RET_FAIL;
        }
     }
        if (pcp->pl_flags & P_MAR) {
            pr("Missile designed to attack ships!\n");
            return RET_FAIL;
        }
     }
-    /* end PINPOINTMISSILE */
+
     if (mapdist(pp->pln_x, pp->pln_y, sx, sy) > pp->pln_range) {
        pr("Range too great; try again!\n");
        return RET_FAIL;
     if (mapdist(pp->pln_x, pp->pln_y, sx, sy) > pp->pln_range) {
        pr("Range too great; try again!\n");
        return RET_FAIL;
@@ -259,7 +258,7 @@ launch_missile(struct plnstr *pp, int sublaunch)
        pr("%s not enough shells!\n", prplane(pp));
        return RET_FAIL;
     }
        pr("%s not enough shells!\n", prplane(pp));
        return RET_FAIL;
     }
-    if (opt_PINPOINTMISSILE == 0 || !(pcp->pl_flags & P_MAR)) {
+    if (!(pcp->pl_flags & P_MAR)) {
        getsect(sx, sy, &sect);
        if (opt_SLOW_WAR) {
            natp = getnatp(player->cnum);
        getsect(sx, sy, &sect);
        if (opt_SLOW_WAR) {
            natp = getnatp(player->cnum);
@@ -304,8 +303,7 @@ launch_missile(struct plnstr *pp, int sublaunch)
            sectdamage(&sect, dam);
            putsect(&sect);
        }
            sectdamage(&sect, dam);
            putsect(&sect);
        }
-    } /* end PINPOINTMISSILE conditional */
-    else if (opt_PINPOINTMISSILE) {    /* else */
+    } else {
        if (!msl_hit(pp, shp_hardtarget(&target_ship), EF_SHIP,
                     N_SHP_MISS, N_SHP_SMISS, prship(&target_ship),
                     target_ship.shp_x, target_ship.shp_y,
        if (!msl_hit(pp, shp_hardtarget(&target_ship), EF_SHIP,
                     N_SHP_MISS, N_SHP_SMISS, prship(&target_ship),
                     target_ship.shp_x, target_ship.shp_y,
@@ -327,7 +325,6 @@ launch_missile(struct plnstr *pp, int sublaunch)
        if (!target_ship.shp_own)
            pr("%s sunk!\n", prship(&target_ship));
     }
        if (!target_ship.shp_own)
            pr("%s sunk!\n", prship(&target_ship));
     }
-    /* end PINPOINTMISSILE */
     return RET_OK;
 }
 
     return RET_OK;
 }
 
index aad1ec12c91233f5961ebed779bb80434b288ff7..fdb2a82ba9859fff85b892dbe333720f03ca7c6a 100644 (file)
@@ -56,7 +56,6 @@ int opt_NOFOOD = 1;
 int opt_NOMOBCOST = 1;
 int opt_NO_FORT_FIRE = 0;
 int opt_NO_PLAGUE = 1;
 int opt_NOMOBCOST = 1;
 int opt_NO_FORT_FIRE = 0;
 int opt_NO_PLAGUE = 1;
-int opt_PINPOINTMISSILE = 1;
 int opt_RAILWAYS = 1;
 int opt_RES_POP = 0;
 int opt_SAIL = 1;
 int opt_RAILWAYS = 1;
 int opt_RES_POP = 0;
 int opt_SAIL = 1;
index 657ed03ab8b41f72b7fa78c532451bbb6367c1e2..4e648cade2d643fa999620f0dab9726abaa96c2a 100644 (file)
@@ -140,8 +140,7 @@ msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
            sublaunch ? "sub-launched" : cname(pp->pln_own),
            xyas(x, y, victim));
 
            sublaunch ? "sub-launched" : cname(pp->pln_own),
            xyas(x, y, victim));
 
-    if (opt_PINPOINTMISSILE == 0 ||
-       (pcp->pl_flags & P_T && !(pcp->pl_flags & P_MAR))) {
+    if ((pcp->pl_flags & P_T && !(pcp->pl_flags & P_MAR))) {
        if (msl_intercept(x, y, pp->pln_own, pcp->pl_def,
                          sublaunch, P_N, P_O)) {
            return 0;
        if (msl_intercept(x, y, pp->pln_own, pcp->pl_def,
                          sublaunch, P_N, P_O)) {
            return 0;