diff options
| author | Subv <s.v.h21@hotmail.com> | 2012-12-28 13:53:44 -0500 |
|---|---|---|
| committer | Subv <s.v.h21@hotmail.com> | 2012-12-28 13:53:44 -0500 |
| commit | 8f589dcdd07da0f9eac20402756494ee67b5ecdc (patch) | |
| tree | 81166275edeca34e7e015bc17fdaedf9fa1d1e5e /src | |
| parent | 4065b17c94859a7e7e312c0db621d9990095201e (diff) | |
Core/Entities: Add a delta to the ground level difference for removing the flying movementflags when landing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 5c0435f77b5..a9376dca351 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -17381,7 +17381,7 @@ bool Unit::UpdatePosition(float x, float y, float z, float orientation, bool tel float ground = z; GetMap()->GetWaterOrGroundLevel(x, y, z, &ground); - bool isInAir = G3D::fuzzyGt(z, ground); + bool isInAir = G3D::fuzzyGt(z, ground + 0.05f); CreatureTemplate const* cinfo = creature->GetCreatureTemplate(); if (cinfo->InhabitType & INHABIT_AIR && cinfo->InhabitType & INHABIT_GROUND && isInAir) |
