From 11a21396d7f4742180e4ad9769c92b24c82acdfe Mon Sep 17 00:00:00 2001 From: tslashd Date: Thu, 2 Oct 2025 12:56:43 +0300 Subject: [PATCH] do not break timer --- src/ST-Events/Tick.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ST-Events/Tick.cs b/src/ST-Events/Tick.cs index 1f9126a..6968d69 100644 --- a/src/ST-Events/Tick.cs +++ b/src/ST-Events/Tick.cs @@ -5,11 +5,18 @@ namespace SurfTimer; public partial class SurfTimer { - public static void OnTick() + public void OnTick() { if (CurrentMap == null) return; + foreach (var player in playerList.Values) + { + player.Timer.Tick(); + player.ReplayRecorder.Tick(player); + player.HUD.Display(); + } + // Need to disable maps from executing their cfgs. Currently idk how (But seriusly it a security issue) ConVar? bot_quota = ConVar.Find("bot_quota");