From 4864709b8a7a4838952445226ebc3b48b1a069f7 Mon Sep 17 00:00:00 2001 From: tanghai Date: Sat, 25 Nov 2023 21:28:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=A7=E5=90=8C=E6=AD=A5jump=E5=88=B0?= =?UTF-8?q?=E6=9F=90=E5=B8=A7=EF=BC=8Ccheckhashfail=E9=83=BD=E8=A6=81?= =?UTF-8?q?=E7=94=A8MemoryPack=E5=BA=8F=E5=88=97=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Unity/Assets/Scripts/Hotfix/Client/LockStep/LSClientHelper.cs | 2 +- .../Hotfix/Client/LockStep/Room2C_CheckHashFailHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Unity/Assets/Scripts/Hotfix/Client/LockStep/LSClientHelper.cs b/Unity/Assets/Scripts/Hotfix/Client/LockStep/LSClientHelper.cs index 77b429fb1e8..d75e212ba1b 100644 --- a/Unity/Assets/Scripts/Hotfix/Client/LockStep/LSClientHelper.cs +++ b/Unity/Assets/Scripts/Hotfix/Client/LockStep/LSClientHelper.cs @@ -113,7 +113,7 @@ public static void JumpReplay(Room room, int frame) room.LSWorld.Dispose(); // 回滚 byte[] memoryBuffer = room.Replay.Snapshots[snapshotIndex]; - LSWorld lsWorld = MongoHelper.Deserialize(typeof (LSWorld), memoryBuffer, 0, memoryBuffer.Length) as LSWorld; + LSWorld lsWorld = MemoryPackHelper.Deserialize(typeof (LSWorld), memoryBuffer, 0, memoryBuffer.Length) as LSWorld; room.LSWorld = lsWorld; room.AuthorityFrame = snapshotIndex * LSConstValue.SaveLSWorldFrameCount; RunLSRollbackSystem(room); diff --git a/Unity/Assets/Scripts/Hotfix/Client/LockStep/Room2C_CheckHashFailHandler.cs b/Unity/Assets/Scripts/Hotfix/Client/LockStep/Room2C_CheckHashFailHandler.cs index a55ced4940b..cf5d761c80a 100644 --- a/Unity/Assets/Scripts/Hotfix/Client/LockStep/Room2C_CheckHashFailHandler.cs +++ b/Unity/Assets/Scripts/Hotfix/Client/LockStep/Room2C_CheckHashFailHandler.cs @@ -5,7 +5,7 @@ public class Room2C_CheckHashFailHandler: MessageHandler