summaryrefslogtreecommitdiffhomepage
path: root/Stars45/SteerAI.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-01-30 17:41:24 +0100
committerAki <please@ignore.pl>2022-01-30 17:41:24 +0100
commit51657e10769faa2617d546a06c42e4c62a19bb50 (patch)
tree688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/SteerAI.cpp
parentdb987e23d5dd33a5db8764743facbb906ac22b0f (diff)
downloadstarshatter-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.cpp14
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;