From a3ee28ee1c16b547bb2c4d58afedad9a2f1c1da8 Mon Sep 17 00:00:00 2001 From: Zack Backmen Date: Fri, 27 Oct 2023 02:51:00 +0300 Subject: [PATCH] fix --- Content.Client/SS220/AnnounceTTS/AnnounceTTSSystem.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Content.Client/SS220/AnnounceTTS/AnnounceTTSSystem.cs b/Content.Client/SS220/AnnounceTTS/AnnounceTTSSystem.cs index 84830204b69..3f5bf4ce6ca 100644 --- a/Content.Client/SS220/AnnounceTTS/AnnounceTTSSystem.cs +++ b/Content.Client/SS220/AnnounceTTS/AnnounceTTSSystem.cs @@ -32,6 +32,12 @@ public override void Initialize() _sawmill = Logger.GetSawmill("AnnounceTTSSystem"); _cfg.OnValueChanged(CCCVars.TTSAnnounceVolume, OnTtsVolumeChanged, true); SubscribeNetworkEvent(OnAnnounceTTSPlay); + SubscribeNetworkEvent(OnCleanup); + } + + private void OnCleanup(RoundRestartCleanupEvent ev) + { + EndStreams(); } ///