]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix fly-by sound leak (#15070)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 2 Apr 2023 14:08:15 +0000 (00:08 +1000)
committerGitHub <noreply@github.com>
Sun, 2 Apr 2023 14:08:15 +0000 (00:08 +1000)
Content.Client/Weapons/Ranged/Systems/FlyBySoundSystem.cs

index 13618808520753e8f9aaf3e5e0e3cb653dd3fd47..5e75795292e463c21d66a93e7f3e33440edfe061 100644 (file)
@@ -40,6 +40,6 @@ public sealed class FlyBySoundSystem : SharedFlyBySoundSystem
         }
 
         // Play attached to our entity because the projectile may immediately delete or the likes.
-        _audio.Play(component.Sound, Filter.Local(), attachedEnt.Value, false);
+        _audio.PlayPredicted(component.Sound, attachedEnt.Value, attachedEnt.Value);
     }
 }