summaryrefslogtreecommitdiffhomepage
path: root/Stars45/TacticalAI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/TacticalAI.cpp')
-rw-r--r--Stars45/TacticalAI.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}