diff options
Diffstat (limited to 'Stars45/FighterTacticalAI.cpp')
-rw-r--r-- | Stars45/FighterTacticalAI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/FighterTacticalAI.cpp b/Stars45/FighterTacticalAI.cpp index a1d2cce..9463a92 100644 --- a/Stars45/FighterTacticalAI.cpp +++ b/Stars45/FighterTacticalAI.cpp @@ -368,7 +368,7 @@ FighterTacticalAI::SelectSecondaryForTarget(Ship* tgt) WeaponGroup* best = 0; List<WeaponGroup> weps; - + if (ListSecondariesForTarget(tgt, weps)) { winchester[wix] = false; @@ -417,7 +417,7 @@ FighterTacticalAI::SelectSecondaryForTarget(Ship* tgt) } } } - + else { winchester[wix] = true; @@ -498,9 +498,9 @@ FighterTacticalAI::FindThreat() while (++c_iter) { Contact* contact = c_iter.value(); - if (contact->Threat(ship) && + if (contact->Threat(ship) && (Game::GameTime() - contact->AcquisitionTime()) > THREAT_REACTION_TIME) { - + double rng = contact->Range(ship); if (contact->GetShot()) { |