Skip to content

Commit

Permalink
fix phys on shuttles (#543)
Browse files Browse the repository at this point in the history
rhailrake authored Oct 30, 2024
1 parent 10a9760 commit 04cd32c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Content.Server/GameTicking/GameTicker.RoundFlow.cs
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
using Content.Server.Ghost;
using Content.Server.Maps;
using Content.Server.Roles;
using Content.Server.Shuttles.Components;
using Content.Shared.CCVar;
using Content.Shared.Database;
using Content.Shared.GameTicking;
@@ -194,6 +195,9 @@ public IReadOnlyList<EntityUid> LoadGameMap(GameMapPrototype map, MapId targetMa
var grids = _mapManager.GetAllMapGrids(targetMapId);
foreach (var grid in grids)
{
if (HasComp<ShuttleComponent>(grid.Owner))
continue;

_physics.SetBodyType(grid.Owner, BodyType.Static);
}
}

0 comments on commit 04cd32c

Please sign in to comment.