1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 18:19:55 +00:00

[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.
This commit is contained in:
David Cernat 2021-03-25 11:25:22 +02:00
parent 0137772e64
commit 17ee3d54e4

View file

@ -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;
}