mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Update another Z Offset location for pathing
This commit is contained in:
parent
2a4d6523b1
commit
e3972cc9e6
@ -1536,8 +1536,7 @@ void NPC::AI_DoMovement() {
|
||||
Log(Logs::Detail, Logs::AI, "Roam Box: d=%.3f (%.3f->%.3f,%.3f->%.3f): Go To (%.3f,%.3f)",
|
||||
roambox_distance, roambox_min_x, roambox_max_x, roambox_min_y, roambox_max_y, roambox_movingto_x, roambox_movingto_y);
|
||||
|
||||
float new_z = this->FindGroundZ(m_Position.x, m_Position.y, 5);
|
||||
new_z += (this->GetSize() / 1.55);
|
||||
float new_z = this->FindGroundZ(m_Position.x, m_Position.y, 5) + this->GetZOffset();
|
||||
|
||||
if (!CalculateNewPosition2(roambox_movingto_x, roambox_movingto_y, new_z, walksp, true))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user