[MIRROR] Fixes bugged lighting overlays on dark tiles [MDB IGNORE] (#9835)

* Fixes bugged lighting overlays on dark tiles (#63171)

* Fixes bugged lighting overlays on dark tiles

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-12-02 23:24:00 +01:00
committed by GitHub
parent 07a33f9d4f
commit dc3c8e9e52
2 changed files with 2 additions and 2 deletions

View File

@@ -88,12 +88,12 @@
if((rr & gr & br & ar) && (rg + gg + bg + ag + rb + gb + bb + ab == 8))
//anything that passes the first case is very likely to pass the second, and addition is a little faster in this case
affected_turf.underlays -= current_underlay
current_underlay.icon_state = "transparent"
current_underlay.icon_state = "lighting_transparent"
current_underlay.color = null
affected_turf.underlays += current_underlay
else if(!set_luminosity)
affected_turf.underlays -= current_underlay
current_underlay.icon_state = "dark"
current_underlay.icon_state = "lighting_dark"
current_underlay.color = null
affected_turf.underlays += current_underlay
else