diff options
author | megamage <none@none> | 2009-04-06 13:27:42 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-04-06 13:27:42 -0500 |
commit | e8866340ce2cb717486c8def489ddc9d3046a0cc (patch) | |
tree | ba1fde0208396dc62a3e0bcb55d298ed8bdbc4e9 /src/game/MotionMaster.cpp | |
parent | 69657cad7c385341de7da6b1d3ec1e738b6e2555 (diff) |
*CreatureGroups fixed and improoved. By TrullyONE
- Multimap support for instances added.
- Removed redundant group checks.
- New movement rules (bool group formed/dismissed added).
- uint32 Creature::GroupID replaced with CreatureGroup pointer.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MotionMaster.cpp')
-rw-r--r-- | src/game/MotionMaster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/MotionMaster.cpp b/src/game/MotionMaster.cpp index 6dcf2d0e214..7e2c25d7433 100644 --- a/src/game/MotionMaster.cpp +++ b/src/game/MotionMaster.cpp @@ -525,9 +525,9 @@ void MotionMaster::DelayedDelete(_Ty curr) bool MotionMaster::GetDestination(float &x, float &y, float &z) { - if(empty()) + if(empty() || !Impl[i_top] || isStatic(Impl[i_top])) return false; - - return top()->GetDestination(x,y,z); + + return top()->GetDestination(x,y,z); } |