From f82d5cb3fcef169cf7a62f83935fa6d6b105589d Mon Sep 17 00:00:00 2001 From: silver1ce Date: Wed, 6 Jan 2010 12:15:02 +0200 Subject: 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 --- src/game/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Spell.cpp') diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 9aa54f9b14e..6db68f9a92c 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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; -- cgit v1.2.3