From a140fb671c1b12ea0a755ac068ce62c29173aec4 Mon Sep 17 00:00:00 2001 From: carnie Date: Mon, 27 May 2013 08:35:57 +0100 Subject: [PATCH] Fixes #630 - The null-sound used to stop currently playing music was being used when turning sounds *on* rather than *off*. Sounds can now be stopped properly without triple-clicking the verb. Modified code/modules/client/preferences_toggles.dm --- code/modules/client/preferences_toggles.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/client/preferences_toggles.dm b/code/modules/client/preferences_toggles.dm index 19df39e3371..4761b6695b0 100644 --- a/code/modules/client/preferences_toggles.dm +++ b/code/modules/client/preferences_toggles.dm @@ -79,10 +79,10 @@ prefs.save_preferences() if(prefs.toggles & SOUND_MIDI) src << "You will now hear any sounds uploaded by admins." + else var/sound/break_sound = sound(null, repeat = 0, wait = 0, channel = 777) break_sound.priority = 250 src << break_sound //breaks the client's sound output on channel 777 - else src << "You will no longer hear sounds uploaded by admins; any currently playing midis have been disabled." feedback_add_details("admin_verb","TMidi") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!