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/SteerAI.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/SteerAI.cpp')
-rw-r--r-- | Stars45/SteerAI.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Stars45/SteerAI.cpp b/Stars45/SteerAI.cpp index 8c17908..9cc726d 100644 --- a/Stars45/SteerAI.cpp +++ b/Stars45/SteerAI.cpp @@ -81,8 +81,8 @@ Steer& Steer::operator+=(const Steer& s) if (s.stop) stop = 1; - - return *this; + + return *this; } Steer& Steer::operator-=(const Steer& s) @@ -96,8 +96,8 @@ Steer& Steer::operator-=(const Steer& s) if (s.stop) stop = 1; - - return *this; + + return *this; } @@ -155,7 +155,7 @@ SteerAI::SetTarget(SimObject* targ, System* sub) { if (target != targ) { target = targ; - + if (target) Observe(target); } @@ -341,10 +341,10 @@ SteerAI::Accumulate(const Steer& steer) if (magnitude + mag > 1) { overflow = 1; double scale = (1 - magnitude) / mag; - + accumulator += steer * scale; magnitude = 1; - + if (seeking) { az[0] *= scale; el[0] *= scale; |