From 1befea80a301d06c096f1720520625ae8baf4644 Mon Sep 17 00:00:00 2001 From: Pavlo Ilin Date: Thu, 21 Mar 2019 12:01:27 +0100 Subject: [PATCH] !XI Merging 1942460 from //dev_game_hunt/release_candidate !B (Network) (HNT-35962) Fix sequence number parser preventing connection recovery after prolonged packet drop in some cases Copied from Perforce Change: 1945956 --- Code/CryEngine/CryNetwork/Protocol/CTPEndpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/CryEngine/CryNetwork/Protocol/CTPEndpoint.cpp b/Code/CryEngine/CryNetwork/Protocol/CTPEndpoint.cpp index 5f27279ff..f32012fc7 100644 --- a/Code/CryEngine/CryNetwork/Protocol/CTPEndpoint.cpp +++ b/Code/CryEngine/CryNetwork/Protocol/CTPEndpoint.cpp @@ -1421,7 +1421,7 @@ public: uint32 nCurrentSeqTag = UnseqBytes[normBytes[1]]; nCurrent = (inputSeq & ~SequenceNumberMask) | nCurrentSeqTag; - if (inputSeq >= SequenceNumberRadius && nCurrent < SSeqNumber(inputSeq.value - SequenceNumberRadius)) + if (nCurrent < SSeqNumber(inputSeq.value - SequenceNumberRadius)) nCurrent.value += SequenceNumberDiameter; else if (nCurrent > inputSeq + SequenceNumberRadius) nCurrent.value -= SequenceNumberDiameter; -- 2.11.4.GIT