aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-01-06 12:15:02 +0200
committersilver1ce <none@none>2010-01-06 12:15:02 +0200
commitf82d5cb3fcef169cf7a62f83935fa6d6b105589d (patch)
tree690e156be323518c0c2ad5372f01684097b5e2f7 /src/game/Player.cpp
parent4a0af0314ee066f37ecb2a7fb8096ae8180dc966 (diff)
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
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 8c98e1c0876..ed728429f1e 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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;