Fixes wires not making sound when pulsed/cut (#38958)

Switches the sound source from the wire datum to the holder
This commit is contained in:
subject217
2018-07-08 16:14:26 -07:00
committed by yogstation13-bot
parent fe3872a4a3
commit 9c681ac047

View File

@@ -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