Core/Creatures

* Refactored setting movement flags into separate method
* Falling creatures are no longer treated as flying for movement flag setting purposes
This commit is contained in:
Shauren committed 2013-06-07 16:05:39 +02:00
1 parent e21b94c25c
commit 88bbff2236
5 files changed
+41 -71

No files matched your search

+5
View File
@@ -17019,6 +17019,11 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
*data << (float)m_movementInfo.splineElevation;
}
bool Unit::IsFalling() const
{
return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING | MOVEMENTFLAG_FALLING_FAR) || movespline->isFalling();
}
void Unit::SetCanFly(bool apply)
{
if (apply)