Empulse fix (#4762)

In my recent PR #4752 while merging my new functional empulse_exclusive into empulse I have accidentally deleted important check. This adds it back!
This commit is contained in:
Mykhailo Bykhovtsev
2018-05-19 08:22:15 +03:00
committed by Erki
parent 8f1830e5d3
commit fb2e05e4fd
+3
View File
@@ -22,6 +22,9 @@ proc/empulse(turf/epicenter, heavy_range, light_range, log = FALSE, list/exclude
pulse.anchored = 1
QDEL_IN(pulse, 20)
if(heavy_range > light_range)
light_range = heavy_range
for(var/mob/M in range(heavy_range, epicenter))
M << 'sound/effects/EMPulse.ogg'