Permalink
Browse files

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)
  • Loading branch information...
1 parent e17a9cf commit 7d60290c2e7bf7a04a7ebe862387aaa4389985cd @Machiavell1 Machiavell1 committed Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/game/Entities/Creature/Creature.cpp
@@ -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);

0 comments on commit 7d60290

Please sign in to comment.