Core/Units: Offset z coordinate only if MOVEMENTFLAG_HOVER is present, not MOVEMENTFLAG_DISABLE_GRAVITY.

(Remnant from an early incorrect version of my UNIT_FIELD_HOVERHEIGHT patch)
This commit is contained in:
Machiavelli
2012-03-15 10:16:08 +01:00
parent e17a9cfb85
commit 7d60290c2e

View File

@@ -763,7 +763,7 @@ bool Creature::Create(uint32 guidlow, Map* map, uint32 phaseMask, uint32 Entry,
return false;
//! Need to be called after CreateFromProto
if (HasUnitMovementFlag(MOVEMENTFLAG_DISABLE_GRAVITY))
if (HasUnitMovementFlag(MOVEMENTFLAG_HOVER))
z += GetFloatValue(UNIT_FIELD_HOVERHEIGHT);
Relocate(x, y, z, ang);