[MIRROR] Lobby music won't be the same as the last round (#2727)

* Merge pull request #30636 from Cyberboss/NoDupeMusic

Lobby music won't be the same as the last round

* Lobby music won't be the same as the last round
This commit is contained in:
CitadelStationBot
2017-09-14 07:51:34 -05:00
committed by Poojawa
parent 6af32da830
commit d86060dcff
+4
View File
@@ -69,6 +69,9 @@ SUBSYSTEM_DEF(ticker)
/datum/controller/subsystem/ticker/Initialize(timeofday)
load_mode()
var/list/music = world.file2list(ROUND_START_MUSIC_LIST, "\n")
var/old_login_music = trim(file2text("data/last_round_lobby_music.txt"))
if(music.len > 1)
music -= old_login_music
login_music = pick(music)
if(!GLOB.syndicate_code_phrase)
@@ -856,3 +859,4 @@ SUBSYSTEM_DEF(ticker)
)
SEND_SOUND(world, sound(round_end_sound))
text2file(login_music, "data/last_round_lobby_music.txt")