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/StarshipAI.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/StarshipAI.cpp')
-rw-r--r-- | Stars45/StarshipAI.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Stars45/StarshipAI.cpp b/Stars45/StarshipAI.cpp index 14af058..9cf24ca 100644 --- a/Stars45/StarshipAI.cpp +++ b/Stars45/StarshipAI.cpp @@ -120,8 +120,8 @@ StarshipAI::FindObjective() bool hold = order == RadioMessage::WEP_HOLD || order == RadioMessage::FORM_UP; - bool form = hold || - (!order && !target) || + bool form = hold || + (!order && !target) || (farcaster); // if not the element leader, stay in formation: @@ -243,7 +243,7 @@ StarshipAI::Navigator() magnitude = 0; hold = false; - if ((ship->GetElement() && ship->GetElement()->GetHoldTime() > 0) || + if ((ship->GetElement() && ship->GetElement()->GetHoldTime() > 0) || (navpt && navpt->Status() == Instruction::COMPLETE && navpt->HoldTime() > 0)) hold = true; @@ -502,8 +502,8 @@ StarshipAI::SeekTarget() navpt->SetRegion(nav_rgn); } - bool use_farcaster = self_rgn != nav_rgn && - (navpt->Farcast() || + bool use_farcaster = self_rgn != nav_rgn && + (navpt->Farcast() || !qdrive || !qdrive->IsPowerOn() || qdrive->Status() < System::DEGRADED @@ -641,7 +641,7 @@ StarshipAI::FireControl() Point delta = target->Location() - ship->Location(); double range = delta.length(); - if (range < weapon->GetDesign()->max_range * 0.9 && + if (range < weapon->GetDesign()->max_range * 0.9 && !AssessTargetPointDefense()) weapon->SetFiringOrders(Weapon::AUTO); |