mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11721] Simplify walk/run movement mode selection code
This commit is contained in:
parent
9d566398ad
commit
fc0eb7e9fa
10 changed files with 10 additions and 54 deletions
|
|
@ -286,10 +286,6 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
|
|||
if (plMover)
|
||||
plMover->UpdateFallInformationIfNeed(movementInfo, opcode);
|
||||
|
||||
// after move info set
|
||||
if (opcode == MSG_MOVE_SET_WALK_MODE || opcode == MSG_MOVE_SET_RUN_MODE)
|
||||
mover->UpdateWalkMode(mover, false);
|
||||
|
||||
WorldPacket data(opcode, recv_data.size());
|
||||
data << mover->GetPackGUID(); // write guid
|
||||
movementInfo.Write(data); // write data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue