From: Markus Armbruster Date: Sun, 4 Oct 2009 17:13:36 +0000 (-0400) Subject: Drop capabilities stealth and half-stealth X-Git-Tag: v4.3.23~30 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=61233e47e8d788320084134d673c1b9e31dc8340 Drop capabilities stealth and half-stealth 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. --- diff --git a/include/plane.h b/include/plane.h index 63fabceb8..b09596631 100644 --- a/include/plane.h +++ b/include/plane.h @@ -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_X bit(10) /* Stealth ability */ +/* unused bit(10) */ #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) */ diff --git a/src/lib/global/symbol.c b/src/lib/global/symbol.c index 9b4d125eb..705de42ae 100644 --- a/src/lib/global/symbol.c +++ b/src/lib/global/symbol.c @@ -208,9 +208,7 @@ struct symbol plane_chr_flags[] = { {P_S, "spy"}, {P_I, "image"}, {P_O, "satellite"}, - {P_X, "stealth"}, {P_N, "SDI"}, - {P_H, "half-stealth"}, {P_E, "x-light"}, {P_K, "helo"}, {P_A, "ASW"}, diff --git a/src/lib/subs/aircombat.c b/src/lib/subs/aircombat.c index 56b738898..8579e51c5 100644 --- a/src/lib/subs/aircombat.c +++ b/src/lib/subs/aircombat.c @@ -780,10 +780,6 @@ ac_flak_dam(int guns, int def, int pl_flags) 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];