From 8f589dcdd07da0f9eac20402756494ee67b5ecdc Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 28 Dec 2012 13:53:44 -0500 Subject: Core/Entities: Add a delta to the ground level difference for removing the flying movementflags when landing. --- src/server/game/Entities/Unit/Unit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server') 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) -- cgit v1.2.3