diff --git a/Content.Server/Salvage/SpawnSalvageMissionJob.cs b/Content.Server/Salvage/SpawnSalvageMissionJob.cs index 2fa4df1bdf..8af22532a5 100644 --- a/Content.Server/Salvage/SpawnSalvageMissionJob.cs +++ b/Content.Server/Salvage/SpawnSalvageMissionJob.cs @@ -138,7 +138,7 @@ public sealed class SpawnSalvageMissionJob : Job expedition.Rewards = mission.Rewards; // Don't want consoles to have the incorrect name until refreshed. - var ftlUid = _entManager.CreateEntityUninitialized("FTLPoint", new EntityCoordinates(mapUid, Vector2.Zero)); + var ftlUid = _entManager.CreateEntityUninitialized("FTLPoint", new EntityCoordinates(mapUid, grid.TileSizeHalfVector)); _entManager.GetComponent(ftlUid).EntityName = SharedSalvageSystem.GetFTLName(_prototypeManager.Index("names_borer"), _missionParams.Seed); _entManager.InitializeAndStartEntity(ftlUid); diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs index 2be0ef57d7..ddb046167a 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs @@ -611,23 +611,6 @@ public sealed partial class ShuttleSystem spawnPos = _transform.GetWorldPosition(targetXform, xformQuery); } - // TODO: This is pretty crude for multiple landings. - if (nearbyGrids.Count > 1 || !HasComp(targetXform.GridUid)) - { - var minRadius = (MathF.Max(targetAABB.Width, targetAABB.Height) + MathF.Max(shuttleAABB.Width, shuttleAABB.Height)) / 2f; - spawnPos = targetAABB.Center + _random.NextVector2(minRadius, minRadius + 64f); - } - else if (shuttleBody != null) - { - var (targetPos, targetRot) = _transform.GetWorldPositionRotation(targetXform, xformQuery); - var transform = new Transform(targetPos, targetRot); - spawnPos = Robust.Shared.Physics.Transform.Mul(transform, -shuttleBody.LocalCenter); - } - else - { - spawnPos = _transform.GetWorldPosition(targetXform, xformQuery); - } - xform.Coordinates = new EntityCoordinates(targetXform.MapUid.Value, spawnPos); if (!HasComp(targetXform.GridUid)) @@ -663,8 +646,8 @@ public sealed partial class ShuttleSystem continue; var aabb = fixture.Shape.ComputeAABB(transform, 0); - // Double the polygon radius (at least while the radius exists). - aabb = aabb.Enlarged(0.02f); + // Create a small border around it. + aabb = aabb.Enlarged(0.2f); aabbs.Add(aabb); foreach (var ent in _lookup.GetEntitiesIntersecting(xform.MapUid.Value, aabb, LookupFlags.Uncontained))