]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
HOTFIX: automatically reset fallback gamemode to default (#41367)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Sun, 9 Nov 2025 21:43:55 +0000 (22:43 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Nov 2025 21:43:55 +0000 (22:43 +0100)
automatically reset fallback gamemode to default after the round

Content.Server/GameTicking/GameTicker.GamePreset.cs

index 40608e45cbce8460672aeac0de4d8c7866bace03..69cc1c4165b6c5d5d2a9755fdafcbd8996b2794c 100644 (file)
@@ -59,7 +59,7 @@ public sealed partial class GameTicker
             foreach (var preset in fallbackPresets)
             {
                 ClearGameRules();
-                SetGamePreset(preset);
+                SetGamePreset(preset, resetDelay: 1);
                 AddGamePresetRules();
                 StartGamePresetRules();
 
@@ -129,11 +129,11 @@ public sealed partial class GameTicker
         }
     }
 
-    public void SetGamePreset(string preset, bool force = false)
+    public void SetGamePreset(string preset, bool force = false, int? resetDelay = null)
     {
         var proto = FindGamePreset(preset);
         if (proto != null)
-            SetGamePreset(proto, force);
+            SetGamePreset(proto, force, null, resetDelay);
     }
 
     public GamePresetPrototype? FindGamePreset(string preset)