[ADMIN] Post-round lobby music will no longer interrupt admin music (#16990)

* all i want for christmas is you

* Update roundend.dm
This commit is contained in:
ynot01
2022-12-16 10:32:45 -05:00
committed by GitHub
parent 9fa260d120
commit 754a905e53
3 changed files with 18 additions and 2 deletions

View File

@@ -174,8 +174,14 @@
LAZYCLEARLIST(round_end_events)
RollCredits()
for(var/client/C in GLOB.clients)
C.playtitlemusic(40)
// Don't interrupt admin music
if(REALTIMEOFDAY >= SSticker.music_available)
for(var/client/C in GLOB.clients)
C.playtitlemusic(40)
else // this looks worse but is better than uselessly comparing for every client
for(var/client/C in GLOB.clients)
if(!(C.prefs.toggles & SOUND_MIDI))
C.playtitlemusic(40)
var/popcount = gather_roundend_feedback()
display_report(popcount)