Core/Entities: Add a delta to the ground level difference for removing the flying movementflags when landing.

This commit is contained in:
Subv committed 2012-12-28 13:53:44 -05:00
1 parent 4065b17c94
commit 8f589dcdd0
1 file changed
+1 -1
+1 -1
View File
@@ -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)