diff --git a/Content.Server/MassMedia/Systems/NewsSystem.cs b/Content.Server/MassMedia/Systems/NewsSystem.cs index 145f95fc76d..ba4f7b3975f 100644 --- a/Content.Server/MassMedia/Systems/NewsSystem.cs +++ b/Content.Server/MassMedia/Systems/NewsSystem.cs @@ -20,6 +20,7 @@ using Content.Shared.Popups; using Content.Shared.StationRecords; using Robust.Shared.Audio.Systems; +using Content.Shared.GameTicking; // Frontier namespace Content.Server.MassMedia.Systems; @@ -43,6 +44,8 @@ public override void Initialize() // News writer // Frontier: News is shared across the sector. No need to create shuttle-local news caches. // SubscribeLocalEvent(OnMapInit); + + SubscribeLocalEvent(OnRoundRestart); // End Frontier // New writer bui messages @@ -59,6 +62,14 @@ public override void Initialize() SubscribeLocalEvent(OnReaderUiMessage); SubscribeLocalEvent(OnReaderUiReady); } + + // Frontier: article lifecycle management + private void OnRoundRestart(RoundRestartCleanupEvent ev) + { + // A new round is starting, clear any articles from the previous round. + SectorNewsComponent.Articles.Clear(); + } + // End Frontier public override void Update(float frameTime) {