diff --git a/changelog.txt b/changelog.txt index 1eb484f8f..88180df59 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ 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 == Akkadius: Implemented event type "EVENT_ENVIRONMENTAL_DAMAGE" - This event triggers when taking any sort of environmental damage. Example use: diff --git a/zone/mob.cpp b/zone/mob.cpp index c42f26fe4..65419530b 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -3092,8 +3092,8 @@ float Mob::FindGroundZ(float new_x, float new_y, float z_offset) if (zone->zonemap != nullptr) { glm::vec3 me; - me.x = m_Position.x; - me.y = m_Position.y; + me.x = new_x; + me.y = new_y; me.z = m_Position.z + z_offset; glm::vec3 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) { glm::vec3 me; - me.x = m_Position.x; - me.y = m_Position.y; + me.x = new_x; + me.y = new_y; me.z = m_Position.z+z_offset; glm::vec3 hit; float best_z = zone->zonemap->FindBestZ(me, &hit);