mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes non-dynamically lit areas being pitch black
Fixes #25179 (Legitimate closing of a pull request, thanks for this bug github) Fixes #25164
This commit is contained in:
@@ -96,7 +96,8 @@ var/datum/controller/subsystem/processing/overlays/SSoverlays
|
|||||||
new_overlays[i] = icon2appearance(cached_overlay)
|
new_overlays[i] = icon2appearance(cached_overlay)
|
||||||
else //image probable
|
else //image probable
|
||||||
appearance_bro.appearance = cached_overlay
|
appearance_bro.appearance = cached_overlay
|
||||||
appearance_bro.dir = cached_overlay.dir
|
if(!ispath(cached_overlay))
|
||||||
|
appearance_bro.dir = cached_overlay.dir
|
||||||
new_overlays[i] = appearance_bro.appearance
|
new_overlays[i] = appearance_bro.appearance
|
||||||
return new_overlays
|
return new_overlays
|
||||||
|
|
||||||
|
|||||||
@@ -123,6 +123,9 @@ var/list/teleportlocs = list()
|
|||||||
|
|
||||||
blend_mode = BLEND_MULTIPLY // Putting this in the constructor so that it stops the icons being screwed up in the map editor.
|
blend_mode = BLEND_MULTIPLY // Putting this in the constructor so that it stops the icons being screwed up in the map editor.
|
||||||
|
|
||||||
|
if(!IS_DYNAMIC_LIGHTING(src))
|
||||||
|
add_overlay(/obj/effect/fullbright)
|
||||||
|
|
||||||
/area/Destroy()
|
/area/Destroy()
|
||||||
STOP_PROCESSING(SSobj, src)
|
STOP_PROCESSING(SSobj, src)
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
dynamic_lighting = new_dynamic_lighting
|
dynamic_lighting = new_dynamic_lighting
|
||||||
|
|
||||||
if (IS_DYNAMIC_LIGHTING(src))
|
if (IS_DYNAMIC_LIGHTING(src))
|
||||||
|
cut_overlay(/obj/effect/fullbright)
|
||||||
for (var/turf/T in area_contents(src))
|
for (var/turf/T in area_contents(src))
|
||||||
if (IS_DYNAMIC_LIGHTING(T))
|
if (IS_DYNAMIC_LIGHTING(T))
|
||||||
T.lighting_build_overlay()
|
T.lighting_build_overlay()
|
||||||
|
|||||||
Reference in New Issue
Block a user