mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
Mant more cmangos Cata commits applied
Commit:
This commit is contained in:
parent
6db0ba8ae9
commit
8cac2f42db
51 changed files with 964 additions and 270 deletions
|
|
@ -38,6 +38,8 @@
|
|||
#include "MapPersistentStateMgr.h"
|
||||
#include "ObjectMgr.h"
|
||||
|
||||
#define MOVEMENT_PACKET_TIME_DELAY 0
|
||||
|
||||
void WorldSession::HandleMoveWorldportAckOpcode(WorldPacket & /*recv_data*/)
|
||||
{
|
||||
DEBUG_LOG("WORLD: got MSG_MOVE_WORLDPORT_ACK.");
|
||||
|
|
@ -595,7 +597,9 @@ bool WorldSession::VerifyMovementInfo(MovementInfo const& movementInfo, ObjectGu
|
|||
|
||||
void WorldSession::HandleMoverRelocation(MovementInfo& movementInfo)
|
||||
{
|
||||
movementInfo.UpdateTime(WorldTimer::getMSTime());
|
||||
if (m_clientTimeDelay == 0)
|
||||
m_clientTimeDelay = WorldTimer::getMSTime() - movementInfo.GetTime();
|
||||
movementInfo.UpdateTime(movementInfo.GetTime() + m_clientTimeDelay + MOVEMENT_PACKET_TIME_DELAY);
|
||||
|
||||
Unit* mover = _player->GetMover();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue