forked from sin365/AxibugEmuOnline
frame test
This commit is contained in:
parent
abd61b4da1
commit
73f1f858fd
@ -33,7 +33,7 @@ namespace AxiReplay
|
|||||||
mNetReplayQueue.Clear();
|
mNetReplayQueue.Clear();
|
||||||
mRemoteFrameIdx = 0;
|
mRemoteFrameIdx = 0;
|
||||||
mCurrReplay = default(ReplayStep);
|
mCurrReplay = default(ReplayStep);
|
||||||
mCurrReplay.FrameStartID = 0;
|
mCurrReplay.FrameStartID = int.MinValue;
|
||||||
mNextReplay = default(ReplayStep);
|
mNextReplay = default(ReplayStep);
|
||||||
mNextReplay.FrameStartID = 0;
|
mNextReplay.FrameStartID = 0;
|
||||||
}
|
}
|
||||||
@ -51,7 +51,7 @@ namespace AxiReplay
|
|||||||
{
|
{
|
||||||
inputDiff = false;
|
inputDiff = false;
|
||||||
int targetFrame = mCurrClientFrameIdx + addFrame;
|
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;
|
ulong oldInput = mCurrReplay.InPut;
|
||||||
|
Loading…
Reference in New Issue
Block a user