Use correct check in BuildMovementPacket to determine if creature can fly. Based on [8647] by NoFantasy

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2009-10-23 16:08:33 +02:00
parent 9a198e9969
commit 803da775f4

View File

@@ -14865,7 +14865,7 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
switch(GetTypeId())
{
case TYPEID_UNIT:
if(isInFlight())
if(canFly())
const_cast<Unit*>(this)->AddUnitMovementFlag(MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_LEVITATING);
break;
case TYPEID_PLAYER: