Core/Misc: Some minor cleanups
Fixed SQL added in prev commit.
This commit is contained in:
1 parent
3a3af64f68
commit
f2000f3fb5
7 files changed
+53
-65
No files matched your search
@@ -717,14 +717,13 @@ void SmartAI::SetFly(bool fly)
|
||||
{
|
||||
me->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
|
||||
me->SetByteFlag(UNIT_FIELD_BYTES_1, 3, 0x01);
|
||||
me->SetFlying(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
me->RemoveUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
|
||||
me->RemoveByteFlag(UNIT_FIELD_BYTES_1, 3, 0x01);
|
||||
me->SetFlying(false);
|
||||
}
|
||||
me->SetFlying(fly);
|
||||
me->SendMovementFlagUpdate();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user