mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
net: ack SMSG_MOVE_GRAVITY_DISABLE/ENABLE and fix fall-through bug
These opcodes were inadvertently falling through to the LAND_WALK handler (same case label), causing incorrect CMSG_MOVE_WATER_WALK_ACK acks to be sent for gravity changes. Split into dedicated cases that send CMSG_MOVE_GRAVITY_DISABLE_ACK and CMSG_MOVE_GRAVITY_ENABLE_ACK respectively, as required by the server protocol.
This commit is contained in:
parent
b3441ee9ce
commit
c72186fd11
1 changed files with 4 additions and 0 deletions
|
|
@ -5534,7 +5534,11 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
|
||||
// ---- Player movement flag changes (server-pushed) ----
|
||||
case Opcode::SMSG_MOVE_GRAVITY_DISABLE:
|
||||
handleForceMoveFlagChange(packet, "GRAVITY_DISABLE", Opcode::CMSG_MOVE_GRAVITY_DISABLE_ACK, 0, true);
|
||||
break;
|
||||
case Opcode::SMSG_MOVE_GRAVITY_ENABLE:
|
||||
handleForceMoveFlagChange(packet, "GRAVITY_ENABLE", Opcode::CMSG_MOVE_GRAVITY_ENABLE_ACK, 0, true);
|
||||
break;
|
||||
case Opcode::SMSG_MOVE_LAND_WALK:
|
||||
handleForceMoveFlagChange(packet, "LAND_WALK", Opcode::CMSG_MOVE_WATER_WALK_ACK, 0, false);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue