Client position updates should be smoother (granted the client has a good connection)

Clients should also no longer randomly disappear
This commit is contained in:
Akkadius
2017-07-14 20:49:57 -05:00
parent 5c75a68715
commit 43204e52f8
15 changed files with 165 additions and 230 deletions
+3 -3
View File
@@ -614,12 +614,12 @@ bool Mob::MakeNewPositionAndSendUpdate(float x, float y, float z, int speed, boo
if (IsClient())
{
SendPosUpdate(1);
SendPositionUpdate(1);
CastToClient()->ResetPositionTimer();
}
else
{
SendPosUpdate();
SendPositionUpdate();
SetAppearance(eaStanding, false);
}
@@ -702,7 +702,7 @@ bool Mob::CalculateNewPosition(float x, float y, float z, int speed, bool checkZ
this->SetMoving(true);
moved = true;
m_Delta = glm::vec4(m_Position.x - nx, m_Position.y - ny, m_Position.z - nz, 0.0f);
SendPosUpdate();
SendPositionUpdate();
}
tar_ndx++;