Skip to content

Commit 11a2139

Browse files
committed
do not break timer
1 parent 3c69ce7 commit 11a2139

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/ST-Events/Tick.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,18 @@ namespace SurfTimer;
55

66
public partial class SurfTimer
77
{
8-
public static void OnTick()
8+
public void OnTick()
99
{
1010
if (CurrentMap == null)
1111
return;
1212

13+
foreach (var player in playerList.Values)
14+
{
15+
player.Timer.Tick();
16+
player.ReplayRecorder.Tick(player);
17+
player.HUD.Display();
18+
}
19+
1320
// Need to disable maps from executing their cfgs. Currently idk how (But seriusly it a security issue)
1421
ConVar? bot_quota = ConVar.Find("bot_quota");
1522

0 commit comments

Comments
 (0)