fixed the bug that GetVmapHeight returns incorrect height on terrains(flying units fall below map etc)
also unlocked max ray lenght for getHeight, by default it's 10 yards --HG-- branch : trunk
This commit is contained in:
+1
-1
@@ -4476,7 +4476,7 @@ bool Player::FallGround(uint8 FallMode)
|
||||
|
||||
float x, y, z;
|
||||
GetPosition(x, y, z);
|
||||
float ground_Z = GetMap()->GetVmapHeight(x, y, z, true);
|
||||
float ground_Z = GetMap()->GetVmapHeight(x, y, z);
|
||||
float z_diff = 0.0f;
|
||||
if ((z_diff = fabs(ground_Z - z)) < 0.1f)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user