mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
Fixed teleport bug.
This commit is contained in:
parent
3b67be525d
commit
e67d38648f
3 changed files with 11 additions and 5 deletions
|
|
@ -160,13 +160,15 @@ void WorldSession::HandleMoveWorldportAckOpcode()
|
||||||
|
|
||||||
void WorldSession::HandleMoveTeleportAck(WorldPacket& recv_data)
|
void WorldSession::HandleMoveTeleportAck(WorldPacket& recv_data)
|
||||||
{
|
{
|
||||||
CHECK_PACKET_SIZE(recv_data, 8+4);
|
|
||||||
|
|
||||||
sLog.outDebug("MSG_MOVE_TELEPORT_ACK");
|
sLog.outDebug("MSG_MOVE_TELEPORT_ACK");
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
uint32 flags, time;
|
|
||||||
|
|
||||||
recv_data >> guid;
|
if(!recv_data.readPackGUID(guid))
|
||||||
|
return;
|
||||||
|
|
||||||
|
CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+4+4);
|
||||||
|
|
||||||
|
uint32 flags, time;
|
||||||
recv_data >> flags >> time;
|
recv_data >> flags >> time;
|
||||||
DEBUG_LOG("Guid " UI64FMTD, guid);
|
DEBUG_LOG("Guid " UI64FMTD, guid);
|
||||||
DEBUG_LOG("Flags %u, time %u", flags, time/IN_MILISECONDS);
|
DEBUG_LOG("Flags %u, time %u", flags, time/IN_MILISECONDS);
|
||||||
|
|
|
||||||
|
|
@ -1295,4 +1295,6 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
|
||||||
/*0x4F2*/ { "UMSG_UNKNOWN_1266", STATUS_NEVER, &WorldSession::Handle_NULL },
|
/*0x4F2*/ { "UMSG_UNKNOWN_1266", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||||
/*0x4F3*/ { "UMSG_UNKNOWN_1267", STATUS_NEVER, &WorldSession::Handle_NULL },
|
/*0x4F3*/ { "UMSG_UNKNOWN_1267", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||||
/*0x4F4*/ { "UMSG_UNKNOWN_1268", STATUS_NEVER, &WorldSession::Handle_NULL },
|
/*0x4F4*/ { "UMSG_UNKNOWN_1268", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||||
|
/*0x4F5*/ { "UMSG_UNKNOWN_1269", STATUS_NEVER, &WorldSession::Handle_NULL },
|
||||||
|
/*0x4F6*/ { "UMSG_UNKNOWN_1270", STATUS_LOGGEDIN, &WorldSession::Handle_NULL },
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1303,7 +1303,9 @@ enum Opcodes
|
||||||
UMSG_UNKNOWN_1266 = 0x4F2, // not found 3.2
|
UMSG_UNKNOWN_1266 = 0x4F2, // not found 3.2
|
||||||
UMSG_UNKNOWN_1267 = 0x4F3, // not found 3.2
|
UMSG_UNKNOWN_1267 = 0x4F3, // not found 3.2
|
||||||
UMSG_UNKNOWN_1268 = 0x4F4, // not found 3.2
|
UMSG_UNKNOWN_1268 = 0x4F4, // not found 3.2
|
||||||
NUM_MSG_TYPES = 0x4F5
|
UMSG_UNKNOWN_1269 = 0x4F5,
|
||||||
|
UMSG_UNKNOWN_1270 = 0x4F6,
|
||||||
|
NUM_MSG_TYPES = 0x4F7
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Player state
|
/// Player state
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue