Core/Movement: implement SMSG_SUSPEND_TOKEN and CMSG_SUSPEND_TOKEN_RESPONSE packets and converted SMSG_TRANSFER_PENDING and SMSG_NEW_WORLD to packet class
This commit is contained in:
1 parent
a5e56171af
commit
22ed3f306d
7 files changed
+186
-20
No files matched your search
@@ -25,11 +25,12 @@
|
||||
#include "MapManager.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "MovementGenerator.h"
|
||||
#include "MovementPackets.h"
|
||||
#include "MovementStructures.h"
|
||||
#include "Transport.h"
|
||||
#include "Battleground.h"
|
||||
#include "InstanceSaveMgr.h"
|
||||
#include "ObjectMgr.h"
|
||||
#include "MovementStructures.h"
|
||||
#include "Vehicle.h"
|
||||
#include "GameTime.h"
|
||||
#include "SpellAuraEffects.h"
|
||||
@@ -217,6 +218,20 @@ void WorldSession::HandleMoveWorldportAck()
|
||||
GetPlayer()->ProcessDelayedOperations();
|
||||
}
|
||||
|
||||
void WorldSession::HandleSuspendTokenResponse(WorldPackets::Movement::SuspendTokenResponse& /*suspendTokenResponse*/)
|
||||
{
|
||||
if (!_player->IsBeingTeleportedFar())
|
||||
return;
|
||||
|
||||
WorldLocation const& loc = GetPlayer()->GetTeleportDest();
|
||||
WorldPackets::Movement::NewWorld packet;
|
||||
packet.MapID = loc.GetMapId();
|
||||
packet.Pos = loc;
|
||||
SendPacket(packet.Write());
|
||||
|
||||
_player->SendSavedInstances();
|
||||
}
|
||||
|
||||
void WorldSession::HandleMoveTeleportAck(WorldPacket& recvPacket)
|
||||
{
|
||||
TC_LOG_DEBUG("network", "MSG_MOVE_TELEPORT_ACK");
|
||||
|
||||
Reference in new issue
Block a user