From e8866340ce2cb717486c8def489ddc9d3046a0cc Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 6 Apr 2009 13:27:42 -0500 Subject: *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 --- src/game/MotionMaster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/MotionMaster.cpp') 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); } -- cgit v1.2.3