]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix mid round antags not starting (#28523)
authorAJCM-git <60196617+AJCM-git@users.noreply.github.com>
Sun, 2 Jun 2024 16:52:40 +0000 (12:52 -0400)
committerGitHub <noreply@github.com>
Sun, 2 Jun 2024 16:52:40 +0000 (12:52 -0400)
Content.Server/StationEvents/Events/StationEventSystem.cs

index 38390cedb1a9d5e68439ba9bdb668405640d1eca..35dc646bce6795a5431170ff3dad84bd870fe637 100644 (file)
@@ -98,7 +98,11 @@ public abstract class StationEventSystem<T> : GameRuleSystem<T> where T : ICompo
             if (!GameTicker.IsGameRuleAdded(uid, ruleData))
                 continue;
 
-            if (stationEvent.EndTime != null && Timing.CurTime >= stationEvent.EndTime && GameTicker.IsGameRuleActive(uid, ruleData))
+            if (!GameTicker.IsGameRuleActive(uid, ruleData) && !HasComp<DelayedStartRuleComponent>(uid))
+            {
+                GameTicker.StartGameRule(uid, ruleData);
+            }
+            else if (stationEvent.EndTime != null && Timing.CurTime >= stationEvent.EndTime && GameTicker.IsGameRuleActive(uid, ruleData))
             {
                 GameTicker.EndGameRule(uid, ruleData);
             }