From c9001bce2d2c5af9422f184775a6b6a2d62915eb Mon Sep 17 00:00:00 2001 From: sleepyyapril Date: Tue, 14 Jan 2025 04:08:48 -0400 Subject: [PATCH] Fix duplicate --- .../Systems/ShuttleSystem.FasterThanLight.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs index 1417340afb8..dfeb8aaa3ef 100644 --- a/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs +++ b/Content.Server/Shuttles/Systems/ShuttleSystem.FasterThanLight.cs @@ -406,17 +406,6 @@ private void UpdateFTLStarting(Entity entity) clippedAudio.Value.Component.Flags |= AudioFlags.NoOcclusion; } - // Leave audio at the old spot - // Just so we don't clip - if (fromMapUid != null && TryComp(comp.StartupStream, out AudioComponent? startupAudio)) - { - var clippedAudio = _audio.PlayStatic(_startupSound, Filter.Broadcast(), - new EntityCoordinates(fromMapUid.Value, _maps.GetGridPosition(entity.Owner)), true, startupAudio.Params); - - _audio.SetPlaybackPosition(clippedAudio, entity.Comp1.StartupTime); - clippedAudio.Value.Component.Flags |= AudioFlags.NoOcclusion; - } - // Offset the start by buffer range just to avoid overlap. var ftlStart = new EntityCoordinates(ftlMap, new Vector2(_index + width / 2f, 0f) - shuttleCenter); @@ -1038,4 +1027,4 @@ private void Smimsh(EntityUid uid, FixturesComponent? manager = null, MapGridCom var ev = new ShuttleFlattenEvent(xform.MapUid.Value, aabbs); RaiseLocalEvent(ref ev); } -} \ No newline at end of file +}