From 73f1f858fdec788cd1e28806b7a7e018681d656f Mon Sep 17 00:00:00 2001 From: sin365 <353374337@qq.com> Date: Mon, 11 Nov 2024 16:39:41 +0800 Subject: [PATCH] frame test --- AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs index f9dc374..3a97a6e 100644 --- a/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs +++ b/AxibugEmuOnline.Client/Assets/Plugins/AxiReplay/NetReplay.cs @@ -33,7 +33,7 @@ namespace AxiReplay mNetReplayQueue.Clear(); mRemoteFrameIdx = 0; mCurrReplay = default(ReplayStep); - mCurrReplay.FrameStartID = 0; + mCurrReplay.FrameStartID = int.MinValue; mNextReplay = default(ReplayStep); mNextReplay.FrameStartID = 0; } @@ -51,7 +51,7 @@ namespace AxiReplay { inputDiff = false; int targetFrame = mCurrClientFrameIdx + addFrame; - if (targetFrame <= mNextReplay.FrameStartID && targetFrame <= mRemoteFrameIdx && mNetReplayQueue.Count > 0) + if (targetFrame <= mNextReplay.FrameStartID + 1 && targetFrame <= mRemoteFrameIdx && mNetReplayQueue.Count > 0) { //当前帧追加 ulong oldInput = mCurrReplay.InPut;