[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 // (ok) most seem to have this
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_LEVITATING); unit->m_movementInfo.AddMovementFlag(MOVEFLAG_LEVITATING);
if (!unit->hasUnitState(UNIT_STAT_MOVING)) /*if (!((Creature*)unit)->hasUnitState(UNIT_STAT_MOVING))
{ {
// (ok) possibly some "hover" mode // (ok) possibly some "hover" mode
unit->m_movementInfo.AddMovementFlag(MOVEFLAG_ROOT); unit->m_movementInfo.AddMovementFlag(MOVEFLAG_ROOT);
} }
else else*/
{ {
if (((Creature*)unit)->IsMounted()) if (((Creature*)unit)->IsMounted())
{ {

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11387" #define REVISION_NR "11388"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__