]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix LoadGameMap running MapInit sometimes (#35241)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 30 Mar 2025 07:06:24 +0000 (18:06 +1100)
committerGitHub <noreply@github.com>
Sun, 30 Mar 2025 07:06:24 +0000 (09:06 +0200)
The map loadpath keeps it as not being mapinit but the grid one does not so this standardises them slightly.

Content.Server/GameTicking/GameTicker.RoundFlow.cs

index 7ab6cfdc63a83366c80fd4ddcdc2a15418e138c6..ce60aae3d910c2953cfb11998133650e36ba33e6 100644 (file)
@@ -196,7 +196,7 @@ namespace Content.Server.GameTicking
 
             if (ev.GameMap.IsGrid)
             {
-                var mapUid = _map.CreateMap(out mapId);
+                var mapUid = _map.CreateMap(out mapId, runMapInit: options?.InitializeMaps ?? false);
                 if (!_loader.TryLoadGrid(mapId,
                         ev.GameMap.MapPath,
                         out var grid,