From db07f68349c8901333430794b412c795dd446985 Mon Sep 17 00:00:00 2001 From: Git-Nivrak <59925169+Git-Nivrak@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:58:34 +0300 Subject: [PATCH] Fixes sources --- code/datums/soundOutput.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/datums/soundOutput.dm b/code/datums/soundOutput.dm index fc3d27e1b5a4..0e00daec07e5 100644 --- a/code/datums/soundOutput.dm +++ b/code/datums/soundOutput.dm @@ -48,18 +48,18 @@ /datum/soundOutput/proc/update_sounds_from_source(atom/source, direction) SIGNAL_HANDLER - for(var/channel in source_sounds[source]) + for(var/datum/sound_template/template in source_sounds[source]) for(var/i in 0 to round(32/SMOOTHING)) i = i * SMOOTHING switch(direction) if(1) - process_sound(current_sounds[channel], TRUE, 0, 1+i/32) + process_sound(template, TRUE, 0, 1+i/32) if(2) - process_sound(current_sounds[channel], TRUE, 0, -1-i/32) + process_sound(template, TRUE, 0, -1-i/32) if(4) - process_sound(current_sounds[channel], TRUE, 1+i/32) + process_sound(template, TRUE, 1+i/32) if(8) - process_sound(current_sounds[channel], TRUE, -1-i/32, 0) + process_sound(template, TRUE, -1-i/32, 0) /datum/soundOutput/proc/remove_sound(channel) current_sounds -= channel