diff options
author | Drahy <none@none> | 2009-02-04 22:08:23 +0100 |
---|---|---|
committer | Drahy <none@none> | 2009-02-04 22:08:23 +0100 |
commit | 674477ddf8678d81d116df88b33160fa6be303cb (patch) | |
tree | 8dd3bac5ab94ee39d7b72588ce8fef231c70ddb0 /src/game/RandomMovementGenerator.cpp | |
parent | 5d4d9530556eb66940775f12c3cc5f3c115447ca (diff) | |
parent | c745eba4a1d122b4184b27a982674c86ff193c23 (diff) |
* Huge merge with original branch
--HG--
branch : trunk
Diffstat (limited to 'src/game/RandomMovementGenerator.cpp')
-rw-r--r-- | src/game/RandomMovementGenerator.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp index 76a92c7df70..8d02a57c49c 100644 --- a/src/game/RandomMovementGenerator.cpp +++ b/src/game/RandomMovementGenerator.cpp @@ -30,13 +30,13 @@ #define RUNNING_CHANCE_RANDOMMV 20 //will be "1 / RUNNING_CHANCE_RANDOMMV" template<> -bool +bool RandomMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const { if(i_destinationHolder.HasArrived()) - return false; - - i_destinationHolder.GetDestination(x, y, z); + return false; + + i_destinationHolder.GetDestination(x, y, z); return true; } @@ -65,7 +65,7 @@ RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature) nx = X + distanceX; ny = Y + distanceY; - // prevent invalid coordinates generation + // prevent invalid coordinates generation Trinity::NormalizeMapCoord(nx); Trinity::NormalizeMapCoord(ny); @@ -122,9 +122,9 @@ RandomMovementGenerator<Creature>::Initialize(Creature &creature) { if(!creature.isAlive()) return; - + wander_distance = creature.GetRespawnRadius(); - + if (creature.canFly()) creature.AddUnitMovementFlag(MOVEMENTFLAG_FLYING2); else |