mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
net: store moveFlags in UpdateBlock for Classic and TBC parsers
Extends the cold-join fix (block.moveFlags) to the Classic and TBC parseMovementBlock implementations so that SMSG_UPDATE_OBJECT CREATE packets on Classic/TBC servers also initialise entity swim/walk state from the spawn-time movement flags via unitMoveFlagsCallback_.
This commit is contained in:
parent
48d21f97bd
commit
ec665bae25
2 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ bool ClassicPacketParsers::parseMovementBlock(network::Packet& packet, UpdateBlo
|
|||
/*float turnRate =*/ packet.readFloat();
|
||||
|
||||
block.runSpeed = runSpeed;
|
||||
block.moveFlags = moveFlags;
|
||||
|
||||
// Spline data (Classic: SPLINE_ENABLED=0x00400000)
|
||||
if (moveFlags & ClassicMoveFlags::SPLINE_ENABLED) {
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ bool TbcPacketParsers::parseMovementBlock(network::Packet& packet, UpdateBlock&
|
|||
/*float turnRate =*/ packet.readFloat();
|
||||
|
||||
block.runSpeed = runSpeed;
|
||||
block.moveFlags = moveFlags;
|
||||
|
||||
// Spline data (TBC/WotLK: SPLINE_ENABLED = 0x08000000)
|
||||
if (moveFlags & TbcMoveFlags::SPLINE_ENABLED) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue