]> git.pond.sub.org Git - empserver/commitdiff
Drop capabilities stealth and half-stealth
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Oct 2009 17:13:36 +0000 (13:13 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Dec 2009 15:28:52 +0000 (16:28 +0100)
These were leftovers from Chainsaw, and their only remaining effect
was a flak bonus.

The got replaced except for flak by plane selector stealth under
Chainsaw option STEALTHV, which became mandatory in Empire 2.  It is
unclear why STEALTHV didn't cover flak.  No planes with these
capabilities have existed in the stock game since Empire 2.

include/plane.h
src/lib/global/symbol.c
src/lib/subs/aircombat.c

index 63fabceb817580db3e73c2ff8b056ea0c02846d6..b09596631a03249611c00c791dfa95f2337ad8c2 100644 (file)
@@ -105,9 +105,9 @@ struct plchrstr {
 #define P_S    bit(7)          /* Spy ability */
 #define P_I    bit(8)          /* Imaging ability (advanced spying) */
 #define P_O    bit(9)          /* Orbital ability (a satellite) */
 #define P_S    bit(7)          /* Spy ability */
 #define P_I    bit(8)          /* Imaging ability (advanced spying) */
 #define P_O    bit(9)          /* Orbital ability (a satellite) */
-#define P_X    bit(10)         /* Stealth ability */
+/* unused      bit(10) */
 #define P_N    bit(11)         /* Nuclear RV interceptor (abm) */
 #define P_N    bit(11)         /* Nuclear RV interceptor (abm) */
-#define        P_H     bit(12)         /* Half stealthy */
+/* unused      bit(12) */
 #define P_E    bit(13)         /* extra light */
 #define P_K    bit(14)         /* chopper */
 #define P_A    bit(15)         /* ASW (Anti-Sub Warfare) */
 #define P_E    bit(13)         /* extra light */
 #define P_K    bit(14)         /* chopper */
 #define P_A    bit(15)         /* ASW (Anti-Sub Warfare) */
index 9b4d125eb314610489af7e29f436b5b5216137b8..705de42ae3ee98c06bad2882611517809d042b8a 100644 (file)
@@ -208,9 +208,7 @@ struct symbol plane_chr_flags[] = {
     {P_S, "spy"},
     {P_I, "image"},
     {P_O, "satellite"},
     {P_S, "spy"},
     {P_I, "image"},
     {P_O, "satellite"},
-    {P_X, "stealth"},
     {P_N, "SDI"},
     {P_N, "SDI"},
-    {P_H, "half-stealth"},
     {P_E, "x-light"},
     {P_K, "helo"},
     {P_A, "ASW"},
     {P_E, "x-light"},
     {P_K, "helo"},
     {P_A, "ASW"},
index 56b73889877cb40d1cb1f99ceadce20fe0934a83..8579e51c5be9634db30dfaea560be231f92ef8f0 100644 (file)
@@ -780,10 +780,6 @@ ac_flak_dam(int guns, int def, int pl_flags)
     flak = guns - def;
     if ((pl_flags & P_T) == 0)
        flak--;
     flak = guns - def;
     if ((pl_flags & P_T) == 0)
        flak--;
-    if (pl_flags & P_X)
-       flak -= 2;
-    if (pl_flags & P_H)
-       flak -= 1;
 
     if (flak > 8)
        mult = flaktable[FLAK_MAX];
 
     if (flak > 8)
        mult = flaktable[FLAK_MAX];