]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix bug where space music would play even when on station (#16260)
authoreoineoineoin <github@eoinrul.es>
Fri, 12 May 2023 22:07:04 +0000 (23:07 +0100)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 22:07:04 +0000 (08:07 +1000)
Content.Client/Audio/BackgroundAudioSystem.cs

index 034ed166651aaea8a713f72a96907ccea0555d26..50639a6d05eae31f2ecf00ebc173a2c2283cc1e8 100644 (file)
@@ -130,7 +130,7 @@ public sealed class BackgroundAudioSystem : EntitySystem
     {
         if (_playMan.LocalPlayer is null
             || _playMan.LocalPlayer.ControlledEntity != message.Entity
-            || !_timing.IsFirstTimePredicted)
+            || !(_timing.IsFirstTimePredicted || _timing.ApplyingState))
             return;
 
         // Check if we traversed to grid.