mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
net: dispatch MSG_MOVE_SET_WALK_MODE and MSG_MOVE_SET_RUN_MODE through handleOtherPlayerMovement
These two opcodes were defined in the opcode table but never routed to handleOtherPlayerMovement. The server sends them when another player explicitly toggles walk/run mode. Without dispatch, the WALKING flag from these packets was never processed, so other players appeared to always run even after switching to walk mode (until the next heartbeat).
This commit is contained in:
parent
ec665bae25
commit
d96a87aafc
1 changed files with 2 additions and 0 deletions
|
|
@ -4473,6 +4473,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
case Opcode::MSG_MOVE_HEARTBEAT:
|
||||
case Opcode::MSG_MOVE_START_SWIM:
|
||||
case Opcode::MSG_MOVE_STOP_SWIM:
|
||||
case Opcode::MSG_MOVE_SET_WALK_MODE:
|
||||
case Opcode::MSG_MOVE_SET_RUN_MODE:
|
||||
if (state == WorldState::IN_WORLD) {
|
||||
handleOtherPlayerMovement(packet);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue