aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-20 17:38:09 +0100
committern0n4m3 <none@none>2009-12-20 17:38:09 +0100
commit851a514f90355d00661b2fd60853ed4623b4b26a (patch)
tree7f4b995bac57c656c83cd82e7011f61106265bfc /src/game/Object.cpp
parent323e613be35346cc9326f4ea7712a314b6310000 (diff)
fix visual bug that flying creatures displayed as walking at place
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 3b976eb1d22..1314c6a7a11 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -420,8 +420,13 @@ void Object::_BuildMovementUpdate(ByteBuffer * data, uint16 flags) const
*data << uint32(GetGUIDLow()); // GetGUIDLow()
break;
case TYPEID_UNIT:
+ {
+ if(((Creature*)this)->canFly())
+ flags |= MOVEMENTFLAG_LEVITATING;
+
*data << uint32(0x0000000B); // unk, can be 0xB or 0xC
break;
+ }
case TYPEID_PLAYER:
if(flags & UPDATEFLAG_SELF)
*data << uint32(0x0000002F); // unk, can be 0x15 or 0x22