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).
This commit is contained in:
Hipposgrumm 2024-07-13 08:54:17 -06:00 committed by Robert Paciorek
parent 65eeb7dd53
commit 883214cb57

View File

@ -173,6 +173,7 @@ public class Room {
private void StartAlert(AlertInfo alert, Client? specificClient = null) { private void StartAlert(AlertInfo alert, Client? specificClient = null) {
if (specificClient != null) return; // Disables joining ongoing alerts.
alert.songId = random.Next(0, alert.songs); alert.songId = random.Next(0, alert.songs);
NetworkArray NewRoomVariables = new(); NetworkArray NewRoomVariables = new();
NewRoomVariables.Add(NetworkArray.VlElement(REDALERT_START, alertId++, isPersistent: true)); NewRoomVariables.Add(NetworkArray.VlElement(REDALERT_START, alertId++, isPersistent: true));