summaryrefslogtreecommitdiffhomepage
path: root/Stars45/StarshipTacticalAI.cpp
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-06-17 06:38:09 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-06-17 06:38:09 +0000
commit05f1b225a03adeab4cda01a6c96595359464ac0e (patch)
treebe9beaaee8116ed81ef9c2aa07d0e16864b4b84b /Stars45/StarshipTacticalAI.cpp
parent89fce9332d6a40fe82acea1c235129b3c823bddc (diff)
downloadstarshatter-05f1b225a03adeab4cda01a6c96595359464ac0e.zip
starshatter-05f1b225a03adeab4cda01a6c96595359464ac0e.tar.gz
starshatter-05f1b225a03adeab4cda01a6c96595359464ac0e.tar.bz2
(Hopefully) Allows SWACS ships to do more than sit around. Needs testing.
Diffstat (limited to 'Stars45/StarshipTacticalAI.cpp')
-rw-r--r--Stars45/StarshipTacticalAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Stars45/StarshipTacticalAI.cpp b/Stars45/StarshipTacticalAI.cpp
index 09d57e2..61c126d 100644
--- a/Stars45/StarshipTacticalAI.cpp
+++ b/Stars45/StarshipTacticalAI.cpp
@@ -202,7 +202,7 @@ void
StarshipTacticalAI::CheckBugOut(Ship* c_ship, double rng)
{
// see if carrier should bug out...
- if (!ship || !c_ship || ship->Class() != Ship::CARRIER)
+ if (!ship || !c_ship || ship->Class() != Ship::CARRIER || ship->Class() != Ship::SWACS)
return;
if (bugout)