mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
net: dispatch MSG_MOVE_ROOT and MSG_MOVE_UNROOT for other entities
This commit is contained in:
parent
1180f0227c
commit
a33119c070
1 changed files with 5 additions and 1 deletions
|
|
@ -4485,6 +4485,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
case Opcode::MSG_MOVE_GRAVITY_CHNG:
|
||||
case Opcode::MSG_MOVE_UPDATE_CAN_FLY:
|
||||
case Opcode::MSG_MOVE_UPDATE_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY:
|
||||
case Opcode::MSG_MOVE_ROOT:
|
||||
case Opcode::MSG_MOVE_UNROOT:
|
||||
if (state == WorldState::IN_WORLD) {
|
||||
handleOtherPlayerMovement(packet);
|
||||
}
|
||||
|
|
@ -12328,7 +12330,7 @@ void GameHandler::handleCompressedMoves(network::Packet& packet) {
|
|||
|
||||
// Player movement sub-opcodes (SMSG_MULTIPLE_MOVES carries MSG_MOVE_*)
|
||||
// Not static — wireOpcode() depends on runtime active opcode table.
|
||||
const std::array<uint16_t, 27> kMoveOpcodes = {
|
||||
const std::array<uint16_t, 29> kMoveOpcodes = {
|
||||
wireOpcode(Opcode::MSG_MOVE_START_FORWARD),
|
||||
wireOpcode(Opcode::MSG_MOVE_START_BACKWARD),
|
||||
wireOpcode(Opcode::MSG_MOVE_STOP),
|
||||
|
|
@ -12356,6 +12358,8 @@ void GameHandler::handleCompressedMoves(network::Packet& packet) {
|
|||
wireOpcode(Opcode::MSG_MOVE_GRAVITY_CHNG),
|
||||
wireOpcode(Opcode::MSG_MOVE_UPDATE_CAN_FLY),
|
||||
wireOpcode(Opcode::MSG_MOVE_UPDATE_CAN_TRANSITION_BETWEEN_SWIM_AND_FLY),
|
||||
wireOpcode(Opcode::MSG_MOVE_ROOT),
|
||||
wireOpcode(Opcode::MSG_MOVE_UNROOT),
|
||||
};
|
||||
|
||||
// Track unhandled sub-opcodes once per compressed packet (avoid log spam)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue