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:
Kelsi 2026-03-10 11:24:15 -07:00
parent ec665bae25
commit d96a87aafc

View file

@ -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);
}