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/bindings/scripts | |
| 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/bindings/scripts')
| -rw-r--r-- | src/bindings/scripts/scripts/kalimdor/caverns_of_time/hyjal/hyjal_trash.cpp | 4 | ||||
| -rw-r--r-- | src/bindings/scripts/scripts/outland/black_temple/boss_teron_gorefiend.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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) { |
