From 301b0aecf3eb3fc7668be4ff44424583200eef02 Mon Sep 17 00:00:00 2001 From: kmyuhkyuk <72241714+kmyuhkyuk@users.noreply.github.com> Date: Wed, 25 Mar 2026 23:15:39 +0800 Subject: [PATCH] Fixed unit mistake --- .../Patchs/CombatStateSynchronizerPatch.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SlayTheSpire2.LAN.Multiplayer/Patchs/CombatStateSynchronizerPatch.cs b/SlayTheSpire2.LAN.Multiplayer/Patchs/CombatStateSynchronizerPatch.cs index bdb3961..728fa98 100644 --- a/SlayTheSpire2.LAN.Multiplayer/Patchs/CombatStateSynchronizerPatch.cs +++ b/SlayTheSpire2.LAN.Multiplayer/Patchs/CombatStateSynchronizerPatch.cs @@ -45,19 +45,19 @@ namespace SlayTheSpire2.LAN.Multiplayer.Patchs var startTime = DateTime.Now; var lastResendTick = DateTime.Now; - const int timeoutMs = 30; - const int resendIntervalMs = 5; + const int timeoutSeconds = 30; + const int resendIntervalSeconds = 5; while (!syncCompletionSource.Task.IsCompleted) { - if ((DateTime.Now - startTime).TotalMilliseconds > timeoutMs) + if ((DateTime.Now - startTime).TotalSeconds > timeoutSeconds) { logger.Warn("Sync timeout, skipping waiting for players"); break; } if (netService.Type == NetGameType.Host && - (DateTime.Now - lastResendTick).TotalMilliseconds > resendIntervalMs && rngSet != null && + (DateTime.Now - lastResendTick).TotalSeconds > resendIntervalSeconds && rngSet != null && sharedRelicGrabBag != null) { logger.Debug("Resending rng sync message");