Skip to content

Commit

Permalink
[11388] Don't add MOVEFLAG_ROOT in case creature has no moving state
Browse files Browse the repository at this point in the history
need unroot unit before move or not use that flag at all
  • Loading branch information
SilverIce committed Apr 21, 2011
1 parent 6a97826 commit 1149a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/Object.cpp
Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11387"
#define REVISION_NR "11388"
#endif // __REVISION_NR_H__

1 comment on commit 1149a10

@SilverIce
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes flying creature blinking that came with 11384

Please sign in to comment.