Update lighting.dm

This commit is contained in:
Ashe Higgs
2017-12-07 17:13:01 -05:00
committed by GitHub
parent c39e5ccca0
commit 193ef1c91f

View File

@@ -492,7 +492,7 @@
// if a light is turned off, it won't activate emergency power
/obj/machinery/light/proc/turned_off()
var/area/A = get_area(src)
return !A.lightswitch && A.power_light && !flickering
return !A.lightswitch && A.power_light || !flickering
// returns whether this light has power
// true if area has power and lightswitch is on