diff options
author | silver1ce <none@none> | 2010-01-06 12:15:02 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-01-06 12:15:02 +0200 |
commit | f82d5cb3fcef169cf7a62f83935fa6d6b105589d (patch) | |
tree | 690e156be323518c0c2ad5372f01684097b5e2f7 /src/game/Creature.cpp | |
parent | 4a0af0314ee066f37ecb2a7fb8096ae8180dc966 (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/Creature.cpp')
-rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 818e01bb396..9fcd1cd48ac 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1477,7 +1477,7 @@ bool Creature::FallGround() 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); if (fabs(ground_Z - z) < 0.1f) return false; |