Merge pull request #70 from H0zen/develop21

[Core] Improve jerky player movement on high latency
This commit is contained in:
Antz 2016-02-04 22:57:53 +00:00
commit 1e80eeb826

View File

@ -529,11 +529,12 @@ bool WorldSession::VerifyMovementInfo(MovementInfo const& movementInfo) const
void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo) void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo)
{ {
uint32 mstime = WorldTimer::getMSTime(); //uint32 mstime = WorldTimer::getMSTime();
if (m_clientTimeDelay == 0) //if (m_clientTimeDelay == 0)
m_clientTimeDelay = mstime - movementInfo.GetTime(); // m_clientTimeDelay = mstime - movementInfo.GetTime();
movementInfo.UpdateTime(movementInfo.GetTime() + m_clientTimeDelay + MOVEMENT_PACKET_TIME_DELAY); //movementInfo.UpdateTime(movementInfo.GetTime() + m_clientTimeDelay + MOVEMENT_PACKET_TIME_DELAY);
movementInfo.UpdateTime(movementInfo.GetTime() + GetLatency());
Unit* mover = _player->GetMover(); Unit* mover = _player->GetMover();