summaryrefslogtreecommitdiffhomepage
path: root/Stars45/SteerAI.cpp
diff options
context:
space:
mode:
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;