diff options
| author | jackpoz <giacomopoz@gmail.com> | 2015-07-28 19:54:49 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2015-07-28 19:54:49 +0200 |
| commit | a7ee951d9efcfb0a0a5b9ed1ec3a732c06d8877f (patch) | |
| tree | 9da85c993ccc04b223eedb1d0c9330cebbf9e629 | |
| parent | df92d2c8d259a272bf5abfc41293f88781d03457 (diff) | |
| parent | b85b0c221b8de65892a3ab52b228f0854621376f (diff) | |
Merge pull request #15168 from jameyboor/3.3.5
Core/Creature: Fix Creature::UpdateMovementFlags() ignoring DynamicTree height
Fix Creature::UpdateMovementFlags() checking only maps/vmaps height and skipping GameObject height stored in DynamicTree
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index c2d0a60aa45..84a12fd6409 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -2553,7 +2553,7 @@ void Creature::UpdateMovementFlags() return; // Set the movement flags if the creature is in that mode. (Only fly if actually in air, only swim if in water, etc) - float ground = GetMap()->GetHeight(GetPositionX(), GetPositionY(), GetPositionZMinusOffset()); + float ground = GetMap()->GetHeight(GetPhaseMask(), GetPositionX(), GetPositionY(), GetPositionZMinusOffset()); bool isInAir = (G3D::fuzzyGt(GetPositionZMinusOffset(), ground + 0.05f) || G3D::fuzzyLt(GetPositionZMinusOffset(), ground - 0.05f)); // Can be underground too, prevent the falling |
