Beams now appear properly when new'd with target and origin turfs equal. (#10602)

This commit is contained in:
mikomyazaki
2020-11-20 14:30:35 +00:00
committed by GitHub
parent 787eaef5aa
commit 4cf027af7b
4 changed files with 50 additions and 12 deletions

View File

@@ -53,7 +53,7 @@
return
source = P
var/datum/beam/power/B = new(src, source, beam_icon_state = "explore_beam", time = -1, maxdistance = cable_length)
if(istype(B))
if(istype(B) && !QDELING(B))
playsound(get_turf(src), 'sound/machines/click.ogg', 30, 0)
B.owner = src
B.Start()