From 1e25a122c9a5fc74b501d2ea183055b3464d2f0a Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 19 Jan 2018 15:36:06 +0800 Subject: [PATCH] [General] Use RELIABLE_ORDERED only when jumping --- .../openmw-mp/Packets/Player/PacketPlayerPosition.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp b/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp index 9dc55b41a..c25865af7 100644 --- a/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp +++ b/components/openmw-mp/Packets/Player/PacketPlayerPosition.cpp @@ -12,7 +12,6 @@ PacketPlayerPosition::PacketPlayerPosition(RakNet::RakPeerInterface *peer) : Pla { packetID = ID_PLAYER_POSITION; priority = MEDIUM_PRIORITY; - //reliability = UNRELIABLE_SEQUENCED; } void PacketPlayerPosition::Packet(RakNet::BitStream *bs, bool send) @@ -23,6 +22,11 @@ void PacketPlayerPosition::Packet(RakNet::BitStream *bs, bool send) unsigned char dir; if (send) { + if((player->movementFlags & /*Flag_ForceJump*/16) != 0) + reliability = RELIABLE_ORDERED; + else + reliability = UNRELIABLE_SEQUENCED; + rot[0] = player->position.rot[0] * 0.1f; rot[1] = player->position.rot[2] * 0.1f;