From 26da5fd503391f1586f72904192f63f1c0ef6391 Mon Sep 17 00:00:00 2001 From: Amos Date: Fri, 18 Aug 2023 15:03:56 +0200 Subject: [PATCH] Increment by 4, since loop does 4 frames at a time Compensate for compiler optimizations performed on CNetChan::FlowNewPacket(). --- r5dev/engine/net_chan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/engine/net_chan.cpp b/r5dev/engine/net_chan.cpp index ec631b5a..cbbcc35d 100644 --- a/r5dev/engine/net_chan.cpp +++ b/r5dev/engine/net_chan.cpp @@ -142,7 +142,7 @@ void CNetChan::_FlowNewPacket(CNetChan* pChan, int flow, int outSeqNr, int inSeq do { - ++numPacketFrames; + numPacketFrames += 4; v24 = (v20 - 2) & NET_FRAMES_MASK; v25 = v24;