先移除maphash校验

This commit is contained in:
wuwenbo 2025-09-29 17:58:28 +08:00
parent 1b488ed4b0
commit e2d7d5b553

View File

@ -64,11 +64,11 @@ namespace TH1_Logic.Steam
if (!LobbyManager.Instance.Lobby.IsLobbyOwner()) return; if (!LobbyManager.Instance.Lobby.IsLobbyOwner()) return;
if (message.ActionData == null) return; if (message.ActionData == null) return;
if (message.ActionData.MapHash != Main.MapData.Net.MapHash) // if (message.ActionData.MapHash != Main.MapData.Net.MapHash)
{ // {
LogSystem.LogError($"OnReceivedActionConfirm MapHash不一致"); // LogSystem.LogError($"OnReceivedActionConfirm MapHash不一致");
return; // return;
} // }
if (message.ActionData.Version != Main.MapData.Net.GetActionVersion()) if (message.ActionData.Version != Main.MapData.Net.GetActionVersion())
{ {
LogSystem.LogError($"OnReceivedActionConfirm Version 不一致"); LogSystem.LogError($"OnReceivedActionConfirm Version 不一致");
@ -95,11 +95,11 @@ namespace TH1_Logic.Steam
} }
if (LobbyManager.Instance.Lobby.IsLobbyOwner()) return; if (LobbyManager.Instance.Lobby.IsLobbyOwner()) return;
if (message.ActionData == null) return; if (message.ActionData == null) return;
if (message.ActionData.MapHash != Main.MapData.Net.MapHash) // if (message.ActionData.MapHash != Main.MapData.Net.MapHash)
{ // {
LogSystem.LogError($"OnReceivedActionConfirm MapHash不一致"); // LogSystem.LogError($"OnReceivedActionConfirm MapHash不一致");
return; // return;
} // }
if (message.ActionData.Version != Main.MapData.Net.GetActionVersion()) if (message.ActionData.Version != Main.MapData.Net.GetActionVersion())
{ {
LogSystem.LogError($"OnReceivedActionConfirm Version 不一致"); LogSystem.LogError($"OnReceivedActionConfirm Version 不一致");