aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMachiavelli <none@none>2009-10-23 16:08:33 +0200
committerMachiavelli <none@none>2009-10-23 16:08:33 +0200
commit803da775f41dc09b762c6cd0e4a7b89bdac72226 (patch)
treeb24b426ad80d9094f68036af53eada8d76b464cd /src
parent9a198e996975bb548a4a466f9dbeb934b420babb (diff)
Use correct check in BuildMovementPacket to determine if creature can fly. Based on [8647] by NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index ac1bb5e65af..90d4d6c166a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -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: