Adds station filter for alert level change sound (#9533)

This commit is contained in:
Flipp Syder
2022-07-08 02:25:35 -07:00
committed by GitHub
parent 1466a803f4
commit 07c622429a
2 changed files with 3 additions and 2 deletions

View File

@@ -173,7 +173,8 @@ public sealed class AlertLevelSystem : EntitySystem
{
if (detail.Sound != null)
{
SoundSystem.Play(detail.Sound.GetSound(), Filter.Broadcast(), detail.Sound.Params);
var filter = _stationSystem.GetInStation(station);
SoundSystem.Play(detail.Sound.GetSound(), filter, detail.Sound.Params);
}
else
{