From 17ee3d54e4162af63376e49e23e578c4987addee Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 25 Mar 2021 11:25:22 +0200 Subject: [PATCH] [General] Lower priority of WorldRegionAuthority packets Previously, sending a PlayerCellChange packet and a WorldRegionAuthority packet to the player at the same time made the latter arrive first even if the former was intended by a server script to arrive first. --- .../Packets/Worldstate/PacketWorldRegionAuthority.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/openmw-mp/Packets/Worldstate/PacketWorldRegionAuthority.cpp b/components/openmw-mp/Packets/Worldstate/PacketWorldRegionAuthority.cpp index 30d4e5834..0b087e603 100644 --- a/components/openmw-mp/Packets/Worldstate/PacketWorldRegionAuthority.cpp +++ b/components/openmw-mp/Packets/Worldstate/PacketWorldRegionAuthority.cpp @@ -4,7 +4,8 @@ mwmp::PacketWorldRegionAuthority::PacketWorldRegionAuthority(RakNet::RakPeerInterface *peer) : WorldstatePacket(peer) { packetID = ID_WORLD_REGION_AUTHORITY; - priority = IMMEDIATE_PRIORITY; + // Make sure the priority is lower than PlayerCellChange's, so it doesn't get sent before it + priority = HIGH_PRIORITY; reliability = RELIABLE_ORDERED; }