mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
delta_x, delta_y, delta_z, and int delta_heading converted to m_Delta
This commit is contained in:
+2
-8
@@ -718,10 +718,7 @@ bool Mob::MakeNewPositionAndSendUpdate(float x, float y, float z, float speed, b
|
||||
SetMoving(true);
|
||||
moved=true;
|
||||
|
||||
delta_x=m_Position.m_X-nx;
|
||||
delta_y=m_Position.m_Y-ny;
|
||||
delta_z=m_Position.m_Z-nz;
|
||||
delta_heading=0;
|
||||
m_Delta = {m_Position.m_X - nx, m_Position.m_Y - ny, m_Position.m_Z - nz, 0.0f};
|
||||
|
||||
if (IsClient())
|
||||
SendPosUpdate(1);
|
||||
@@ -845,10 +842,7 @@ bool Mob::CalculateNewPosition(float x, float y, float z, float speed, bool chec
|
||||
tar_ndx=0;
|
||||
this->SetMoving(true);
|
||||
moved=true;
|
||||
delta_x=(m_Position.m_X-nx);
|
||||
delta_y=(m_Position.m_Y-ny);
|
||||
delta_z=(m_Position.m_Z-nz);
|
||||
delta_heading=0;//(heading-nh)*8;
|
||||
m_Delta = {m_Position.m_X - nx, m_Position.m_Y - ny, m_Position.m_Z - nz, 0.0f};
|
||||
SendPosUpdate();
|
||||
}
|
||||
tar_ndx++;
|
||||
|
||||
Reference in New Issue
Block a user