]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix emergency shuttle spawning (#14214)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Wed, 22 Feb 2023 01:47:05 +0000 (12:47 +1100)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 01:47:05 +0000 (12:47 +1100)
Content.Server/GameTicking/GameTicker.GamePreset.cs
Content.Server/GameTicking/GameTicker.RoundFlow.cs

index 41622d6e822c48d1cd6cfff9945bb33250792c11..eb44943e76f31bd1b976c5ecef1df97d37f7bb42 100644 (file)
@@ -260,9 +260,6 @@ namespace Content.Server.GameTicking
 
             _taskManager.BlockWaitOnTask(task);
             RoundId = task.GetAwaiter().GetResult();
-
-            var startingEvent = new RoundStartingEvent(RoundId);
-            RaiseLocalEvent(startingEvent);
         }
     }
 
index 5e45894c16d0aa0bb70d9680363a9a7b01a48b6e..ab9c7ea4bf0a27033cf2f149317ba432607991fe 100644 (file)
@@ -180,6 +180,8 @@ namespace Content.Server.GameTicking
 
             RoundLengthMetric.Set(0);
 
+            var startingEvent = new RoundStartingEvent(RoundId);
+            RaiseLocalEvent(startingEvent);
             var readyPlayers = new List<IPlayerSession>();
             var readyPlayerProfiles = new Dictionary<NetUserId, HumanoidCharacterProfile>();