From 883214cb57c2ad236f5b206cca1079d9d24882d4 Mon Sep 17 00:00:00 2001 From: Hipposgrumm <60556345+Hipposgrumm@users.noreply.github.com> Date: Sat, 13 Jul 2024 08:54:17 -0600 Subject: [PATCH] Disabled Joining Ongoing Alerts (#4) Ongoing alerts will no longer be sent when a player joins that room. Code for the functionality remains in case there is want to re-enable it (assuming it gets fixed). --- src/Core/Room.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Room.cs b/src/Core/Room.cs index 4d683ab..b733f0f 100644 --- a/src/Core/Room.cs +++ b/src/Core/Room.cs @@ -173,6 +173,7 @@ public class Room { private void StartAlert(AlertInfo alert, Client? specificClient = null) { + if (specificClient != null) return; // Disables joining ongoing alerts. alert.songId = random.Next(0, alert.songs); NetworkArray NewRoomVariables = new(); NewRoomVariables.Add(NetworkArray.VlElement(REDALERT_START, alertId++, isPersistent: true));