diff options
author | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 22:59:46 +0200 |
commit | 49d05ba9aa1cd5c1f3ae96546283e6d03a037ff7 (patch) | |
tree | f7e6135573366a686c1f527e16a0a7d42a7877ff /src/game/ConfusedMovementGenerator.cpp | |
parent | d19e12708001fbef2308be0e8cb5375a2ac7af48 (diff) |
Code style (game + scripts only):
"( " --> "("
" )" --> ")"
--HG--
branch : trunk
Diffstat (limited to 'src/game/ConfusedMovementGenerator.cpp')
-rw-r--r-- | src/game/ConfusedMovementGenerator.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/ConfusedMovementGenerator.cpp b/src/game/ConfusedMovementGenerator.cpp index a1c95c5c2a0..43c6052d2d3 100644 --- a/src/game/ConfusedMovementGenerator.cpp +++ b/src/game/ConfusedMovementGenerator.cpp @@ -125,13 +125,13 @@ ConfusedMovementGenerator<T>::Update(T &unit, const uint32 &diff) if (unit.hasUnitState(UNIT_STAT_ROOT | UNIT_STAT_STUNNED | UNIT_STAT_DISTRACTED)) return true; - if ( i_nextMoveTime.Passed() ) + if (i_nextMoveTime.Passed()) { // currently moving, update location Traveller<T> traveller(unit); - if ( i_destinationHolder.UpdateTraveller(traveller, diff)) + if (i_destinationHolder.UpdateTraveller(traveller, diff)) { - if ( i_destinationHolder.HasArrived()) + if (i_destinationHolder.HasArrived()) { // arrived, stop and wait a bit unit.clearUnitState(UNIT_STAT_MOVE); @@ -145,10 +145,10 @@ ConfusedMovementGenerator<T>::Update(T &unit, const uint32 &diff) { // waiting for next move i_nextMoveTime.Update(diff); - if ( i_nextMoveTime.Passed() ) + if (i_nextMoveTime.Passed()) { // start moving - assert( i_nextMove <= MAX_CONF_WAYPOINTS ); + assert(i_nextMove <= MAX_CONF_WAYPOINTS); const float x = i_waypoints[i_nextMove][0]; const float y = i_waypoints[i_nextMove][1]; const float z = i_waypoints[i_nextMove][2]; |