mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Update lighting.dm
This commit is contained in:
@@ -492,7 +492,7 @@
|
|||||||
// if a light is turned off, it won't activate emergency power
|
// if a light is turned off, it won't activate emergency power
|
||||||
/obj/machinery/light/proc/turned_off()
|
/obj/machinery/light/proc/turned_off()
|
||||||
var/area/A = get_area(src)
|
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
|
// returns whether this light has power
|
||||||
// true if area has power and lightswitch is on
|
// true if area has power and lightswitch is on
|
||||||
|
|||||||
Reference in New Issue
Block a user