fix
This commit is contained in:
parent
d0d5655681
commit
abd61b4da1
@ -8,11 +8,10 @@ namespace AxiReplay
|
|||||||
/// 客户端当前帧
|
/// 客户端当前帧
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int mCurrClientFrameIdx => mCurrReplay.FrameStartID;
|
public int mCurrClientFrameIdx => mCurrReplay.FrameStartID;
|
||||||
//public int mCurrClientFrameIdx
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 服务器远端当前帧
|
/// 服务器远端当前帧
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int mRemoteFrameIdx { get; private set; } = -1;
|
public int mRemoteFrameIdx { get; private set; } = int.MinValue;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 网络数据队列
|
/// 网络数据队列
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -36,7 +35,7 @@ namespace AxiReplay
|
|||||||
mCurrReplay = default(ReplayStep);
|
mCurrReplay = default(ReplayStep);
|
||||||
mCurrReplay.FrameStartID = 0;
|
mCurrReplay.FrameStartID = 0;
|
||||||
mNextReplay = default(ReplayStep);
|
mNextReplay = default(ReplayStep);
|
||||||
mNextReplay.FrameStartID = -1;
|
mNextReplay.FrameStartID = 0;
|
||||||
}
|
}
|
||||||
public void InData(ReplayStep inputData, int ServerFrameIdx)
|
public void InData(ReplayStep inputData, int ServerFrameIdx)
|
||||||
{
|
{
|
||||||
@ -52,10 +51,9 @@ 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 && targetFrame <= mRemoteFrameIdx && mNetReplayQueue.Count > 0)
|
||||||
{
|
{
|
||||||
//当前帧追加
|
//当前帧追加
|
||||||
//mCurrClientFrameIdx = targetFrame;
|
|
||||||
ulong oldInput = mCurrReplay.InPut;
|
ulong oldInput = mCurrReplay.InPut;
|
||||||
mCurrReplay = mNextReplay;
|
mCurrReplay = mNextReplay;
|
||||||
if (oldInput != mCurrReplay.InPut)
|
if (oldInput != mCurrReplay.InPut)
|
||||||
|
Loading…
Reference in New Issue
Block a user