The final solution of bad taste in midis question

The final solution of bad taste in midis question
Added special client verb that kills all sounds currently playing for
this client
This is better because toggle midis only pauses them, not actually stops
them
This commit is contained in:
Razharas
2015-09-25 22:42:24 +03:00
parent 7b4ae601f5
commit df189498ce
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ var/sound/admin_sound
/client/proc/stop_sounds()
set category = "Debug"
set name = "Stop Sounds"
set name = "Stop All Playing Sounds"
if(!src.holder) return
log_admin("[key_name(src)] stopped all currently playing sounds.")
@@ -60,6 +60,6 @@ var/sound/admin_sound
for(var/mob/M in player_list)
if(M.client)
M << sound(null)
feedback_add_details("admin_verb","SS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
feedback_add_details("admin_verb","SAPS") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
#undef SOUND_CHANNEL_ADMIN