Skip to content

Commit

Permalink
Fixes sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Jul 6, 2024
1 parent dfb66b8 commit db07f68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/datums/soundOutput.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db07f68

Please sign in to comment.