diff options
author | XTZGZoReX <none@none> | 2009-04-07 10:51:45 +0200 |
---|---|---|
committer | XTZGZoReX <none@none> | 2009-04-07 10:51:45 +0200 |
commit | 2fe9fed7c71697af06b981e221ea54acb62abb6b (patch) | |
tree | 6ef4315d9fd88d1a18b775c2ed0a56661df76d90 /src/game/WaypointMovementGenerator.cpp | |
parent | 81e2f4ab89f48408479019a4dc017e638779f848 (diff) |
* Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG--
branch : trunk
Diffstat (limited to 'src/game/WaypointMovementGenerator.cpp')
-rw-r--r-- | src/game/WaypointMovementGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index c6607b2b24e..7c606697ac3 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -53,9 +53,9 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature &unit) template<> bool WaypointMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const { - if(i_destinationHolder.HasArrived()) + if(i_destinationHolder.HasArrived()) return false; - + i_destinationHolder.GetDestination(x, y, z); return true; } @@ -112,7 +112,7 @@ WaypointMovementGenerator<Creature>::Initialize(Creature &u) i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime()); //Call for creature group update - if(u.GetFormation() && u.GetFormation()->getLeader() == &u) + if(u.GetFormation() && u.GetFormation()->getLeader() == &u) u.GetFormation()->LeaderMoveTo(node->x, node->y, node->z); } else @@ -187,7 +187,7 @@ WaypointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff) i_nextMoveTime.Reset(i_destinationHolder.GetTotalTravelTime()); //Call for creature group update - if(unit.GetFormation() && unit.GetFormation()->getLeader() == &unit) + if(unit.GetFormation() && unit.GetFormation()->getLeader() == &unit) unit.GetFormation()->LeaderMoveTo(node->x, node->y, node->z); } else |