From 6fdab2e3525762b06c7207ef46b69eebe328605a Mon Sep 17 00:00:00 2001 From: subject217 <38303698+subject217@users.noreply.github.com> Date: Sun, 8 Jul 2018 16:14:26 -0700 Subject: [PATCH] Fixes wires not making sound when pulsed/cut (#38958) Switches the sound source from the wire datum to the holder --- code/datums/wires/_wires.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/datums/wires/_wires.dm b/code/datums/wires/_wires.dm index ce1d4a42a25..c23eb64469d 100644 --- a/code/datums/wires/_wires.dm +++ b/code/datums/wires/_wires.dm @@ -257,8 +257,8 @@ if("cut") I = L.is_holding_tool_quality(TOOL_WIRECUTTER) if(I || IsAdminGhost(usr)) - if(I) - I.play_tool_sound(src, 20) + if(I && holder) + I.play_tool_sound(holder, 20) cut_color(target_wire) . = TRUE else @@ -266,8 +266,8 @@ if("pulse") I = L.is_holding_tool_quality(TOOL_MULTITOOL) if(I || IsAdminGhost(usr)) - if(I) - I.play_tool_sound(src, 20) + if(I && holder) + I.play_tool_sound(holder, 20) pulse_color(target_wire, L) . = TRUE else