Oops. Accidently did mediamanager shutdown wrong. Fixed.

This commit is contained in:
Leshana
2017-03-28 19:36:56 -04:00
parent 1e39e60e9a
commit 698a5c4dee
+3 -6
View File
@@ -16,11 +16,6 @@
#define MP_DEBUG(x)
#endif
/proc/stop_all_media()
for(var/mob/M in mob_list)
if(M && M.client)
M.stop_all_music()
// Set up player on login to a mob.
// This means they get a new media manager every time they switch mobs!
// Is this wasteful? Granted switching mobs doesn't happen very often so maybe its fine.
@@ -36,7 +31,9 @@
/hook/roundend/proc/stop_all_media()
log_debug("Stopping all playing media...")
// Stop all music.
stop_all_media()
for(var/mob/M in mob_list)
if(M && M.client)
M.stop_all_music()
// SHITTY HACK TO AVOID RACE CONDITION WITH SERVER REBOOT.
sleep(10) // TODO - Leshana - see if this is needed