mirror of
https://github.com/SoDOff-Project/sodoff-mmo.git
synced 2025-10-11 08:18:49 -07:00
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:
parent
65eeb7dd53
commit
883214cb57
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user