diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/FighterTacticalAI.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
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()) { |