From 9e6cb0bda661460fe5d993e6cc0259a21499dc4c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 26 Apr 2006 18:49:33 +0000 Subject: [PATCH] Only L_SUPPLY units can't attack as of 4.0.0, fix info Attacking, remove dead code. --- info/Attacking.t | 5 ++--- src/lib/subs/lndsub.c | 5 ----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/info/Attacking.t b/info/Attacking.t index 15be8c99..017ee786 100644 --- a/info/Attacking.t +++ b/info/Attacking.t @@ -77,9 +77,8 @@ Board: When boarding from a sector, the sector must have mob. When The following restrictions apply to the aggressor's land units: A land unit must have mobility and be in supply (see info supply) in -order to be able to enter the combat. Land units with "security", -"supply" or "flak" capability may not attack. Also, you may not -attack with artillery units (i.e. if frg > 0). Only land units with "assault" +order to be able to enter the combat. Land units with "supply" +capability may not attack. Only land units with "assault" capability may assault or board. Attack: The land unit must have at least as much mobility that it would cost for it to march into the sector. diff --git a/src/lib/subs/lndsub.c b/src/lib/subs/lndsub.c index b6a49390..979ca9a0 100644 --- a/src/lib/subs/lndsub.c +++ b/src/lib/subs/lndsub.c @@ -1353,11 +1353,6 @@ lnd_can_attack(struct lndstr *lp) { struct lchrstr *lcp = &lchr[(int)lp->lnd_type]; -/* if (lcp->l_flags & L_SUPPLY || - lcp->l_flags & L_SECURITY || - lcp->l_flags & L_FLAK || - lcp->l_frg) - return 0; */ if (lcp->l_flags & L_SUPPLY) return 0;