From 05f1b225a03adeab4cda01a6c96595359464ac0e Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Sun, 17 Jun 2012 06:38:09 +0000 Subject: (Hopefully) Allows SWACS ships to do more than sit around. Needs testing. --- Stars45/TacticalAI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Stars45/TacticalAI.cpp') diff --git a/Stars45/TacticalAI.cpp b/Stars45/TacticalAI.cpp index 32d364a..f020298 100644 --- a/Stars45/TacticalAI.cpp +++ b/Stars45/TacticalAI.cpp @@ -630,7 +630,7 @@ TacticalAI::SelectTargetOpportunity() if (rogue || tgt_ok) { if (c_ship && c_ship != ship && !c_ship->InTransition()) { if (c_ship->Class() < Ship::DESTROYER || - (c_ship->Class() >= Ship::MINE && c_ship->Class() <= Ship::SWACS)) { + (c_ship->Class() >= Ship::MINE && c_ship->Class() <= Ship::DEFSAT)) { // found an enemy, check distance: double dist = (ship->Location() - c_ship->Location()).length(); @@ -736,7 +736,7 @@ TacticalAI::SelectTargetOpportunity() } } - if (ship->Class() != Ship::CARRIER) + if (ship->Class() != Ship::CARRIER || ship->Class() != Ship::SWACS) ship_ai->SetTarget(potential_target); } -- cgit v1.1