diff options
author | megamage <none@none> | 2008-12-14 12:05:06 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-14 12:05:06 -0600 |
commit | 7097ffe6dc326362a4d51b4c4453d6ca7ba928c8 (patch) | |
tree | 45d372fa9096e5d8bee6306369cc935b703d699a /src/game/RandomMovementGenerator.cpp | |
parent | efe09c1d924012000bdf6c399679d54f4d603c99 (diff) | |
parent | 395116752b79401cf79e988b36567988c60c3ab2 (diff) |
*Merge with 499.
--HG--
branch : trunk
Diffstat (limited to 'src/game/RandomMovementGenerator.cpp')
-rw-r--r-- | src/game/RandomMovementGenerator.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/RandomMovementGenerator.cpp b/src/game/RandomMovementGenerator.cpp index cb7cb6ffcda..311cc7c6e17 100644 --- a/src/game/RandomMovementGenerator.cpp +++ b/src/game/RandomMovementGenerator.cpp @@ -28,6 +28,17 @@ #define RUNNING_CHANCE_RANDOMMV 20 //will be "1 / RUNNING_CHANCE_RANDOMMV" template<> +bool +RandomMovementGenerator<Creature>::GetDestination(float &x, float &y, float &z) const +{ + if(i_destinationHolder.HasArrived()) + return false; + + i_destinationHolder.GetDestination(x, y, z); + return true; +} + +template<> void RandomMovementGenerator<Creature>::_setRandomLocation(Creature &creature) { |