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:
silver1ce committed 2010-01-06 12:15:02 +02:00
1 parent 4a0af0314e
commit f82d5cb3fc
10 files changed
+29 -30

No files matched your search

+1 -1
View File
@@ -5177,7 +5177,7 @@ SpellCastResult Spell::CheckCast(bool strict)
{
float x, y, z;
m_caster->GetPosition(x, y, z);
float ground_Z = m_caster->GetMap()->GetVmapHeight(x, y, z, true);
float ground_Z = m_caster->GetMap()->GetVmapHeight(x, y, z);
if (fabs(ground_Z - z) < 0.1f)
return SPELL_FAILED_DONT_REPORT;
break;