Fixed FindGroundZ() and GetGroundZ() to once again utilize the X and Y arguments that are passed to them.

This commit is contained in:
Trevius 2015-01-31 11:44:25 -06:00
parent eb7d77bcac
commit fe6fa75385
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50) EQEMu Changelog (Started on Sept 24, 2003 15:50)
------------------------------------------------------- -------------------------------------------------------
== 01/31/2015 ==
Trevius: Fixed FindGroundZ() and GetGroundZ() to once again utilize the X and Y arguments that are passed to them.
== 01/30/2015 == == 01/30/2015 ==
Akkadius: Implemented event type "EVENT_ENVIRONMENTAL_DAMAGE" Akkadius: Implemented event type "EVENT_ENVIRONMENTAL_DAMAGE"
- This event triggers when taking any sort of environmental damage. Example use: - This event triggers when taking any sort of environmental damage. Example use:

View File

@ -3092,8 +3092,8 @@ float Mob::FindGroundZ(float new_x, float new_y, float z_offset)
if (zone->zonemap != nullptr) if (zone->zonemap != nullptr)
{ {
glm::vec3 me; glm::vec3 me;
me.x = m_Position.x; me.x = new_x;
me.y = m_Position.y; me.y = new_y;
me.z = m_Position.z + z_offset; me.z = m_Position.z + z_offset;
glm::vec3 hit; glm::vec3 hit;
float best_z = zone->zonemap->FindBestZ(me, &hit); float best_z = zone->zonemap->FindBestZ(me, &hit);
@ -3112,8 +3112,8 @@ float Mob::GetGroundZ(float new_x, float new_y, float z_offset)
if (zone->zonemap != 0) if (zone->zonemap != 0)
{ {
glm::vec3 me; glm::vec3 me;
me.x = m_Position.x; me.x = new_x;
me.y = m_Position.y; me.y = new_y;
me.z = m_Position.z+z_offset; me.z = m_Position.z+z_offset;
glm::vec3 hit; glm::vec3 hit;
float best_z = zone->zonemap->FindBestZ(me, &hit); float best_z = zone->zonemap->FindBestZ(me, &hit);