*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
This commit is contained in:
megamage
2009-04-06 13:27:42 -05:00
parent 69657cad7c
commit e8866340ce
12 changed files with 229 additions and 142 deletions

View File

@@ -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);
}