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 --- .../scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp | 4 ++-- .../scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bindings/scripts') diff --git a/src/bindings/scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp b/src/bindings/scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp index 3757c753814..3550e1c956e 100644 --- a/src/bindings/scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp +++ b/src/bindings/scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp @@ -1126,7 +1126,7 @@ struct mob_frost_wyrmAI : public hyjal_trashAI float x,y,z; m_creature->GetPosition(x,y,z); - z = m_creature->GetMap()->GetVmapHeight(x, y, z, true); + z = m_creature->GetMap()->GetVmapHeight(x, y, z); m_creature->GetMotionMaster()->MovePoint(0,x,y,z); m_creature->GetMap()->CreatureRelocation(m_creature, x,y,z,0); } @@ -1238,7 +1238,7 @@ struct mob_gargoyleAI : public hyjal_trashAI { float x,y,z; m_creature->GetPosition(x,y,z); - z = m_creature->GetMap()->GetVmapHeight(x, y, z, true); + z = m_creature->GetMap()->GetVmapHeight(x, y, z); m_creature->GetMotionMaster()->MovePoint(0,x,y,z); m_creature->GetMap()->CreatureRelocation(m_creature, x,y,z,0); hyjal_trashAI::JustDied(victim); diff --git a/src/bindings/scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp b/src/bindings/scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp index cd758269ffc..9d04cca9650 100644 --- a/src/bindings/scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp +++ b/src/bindings/scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp @@ -399,7 +399,7 @@ struct TRINITY_DLL_DECL boss_teron_gorefiendAI : public ScriptedAI float X = CalculateRandomLocation(pTarget->GetPositionX(), 20); float Y = CalculateRandomLocation(pTarget->GetPositionY(), 20); float Z = pTarget->GetPositionZ(); - Z = m_creature->GetMap()->GetVmapHeight(X, Y, Z, true); + Z = m_creature->GetMap()->GetVmapHeight(X, Y, Z); Creature* DoomBlossom = m_creature->SummonCreature(CREATURE_DOOM_BLOSSOM, X, Y, Z, 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 20000); if (DoomBlossom) { -- cgit v1.2.3