mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Vehicles: Hotfix for client freeze on vehicle enter by reverting certain changes to SMSG_MONSTER_MOVE_TRANSPORT. Still have to figure out the correct structure in the future.
This commit is contained in:
@@ -428,13 +428,13 @@ void Unit::SendMonsterMoveTransport(Unit *vehicleOwner)
|
||||
data << GetPositionZ() - vehicleOwner->GetPositionZ();
|
||||
data << uint32(getMSTime()); // should be an increasing constant that indicates movement packet count
|
||||
data << uint8(SPLINETYPE_FACING_ANGLE);
|
||||
data << GetOrientation(); // facing angle?
|
||||
data << GetTransOffsetO(); // facing angle?
|
||||
data << uint32(SPLINEFLAG_TRANSPORT);
|
||||
data << uint32(GetTransTime()); // move time
|
||||
data << uint32(1); // amount of waypoints
|
||||
data << GetTransOffsetX();
|
||||
data << GetTransOffsetY();
|
||||
data << GetTransOffsetZ();
|
||||
data << uint32(0); // amount of waypoints
|
||||
data << uint32(0); // waypoint X
|
||||
data << uint32(0); // waypoint Y
|
||||
data << uint32(0); // waypoint Z
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user