[11388] Don't add MOVEFLAG_ROOT in case creature has no moving state

need unroot unit before move or not use that flag at all
This commit is contained in:
SilverIce 2011-04-21 15:00:38 +03:00
parent c4f2b30205
commit eb678ce092
2 changed files with 3 additions and 3 deletions

View file

@ -252,12 +252,12 @@ void Object::BuildMovementUpdate(ByteBuffer * data, uint16 updateFlags) const
// (ok) most seem to have this
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_LEVITATING);
if (!unit->hasUnitState(UNIT_STAT_MOVING))
/*if (!((Creature*)unit)->hasUnitState(UNIT_STAT_MOVING))
{
// (ok) possibly some "hover" mode
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_ROOT);
}
else
else*/
{
if (((Creature*)unit)->IsMounted())
{