mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-01-06 23:23:14 +00:00
Fixes ruin lighting.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
// Needed for changeTurf() so it doesn't screw up before lighting overlays have been made.
|
||||
var/lighting_overlays_initialized = FALSE
|
||||
var/datum/subsystem/lighting/SSlighting
|
||||
|
||||
/var/list/lighting_update_lights = list() // List of lighting sources queued for update.
|
||||
@@ -29,6 +30,7 @@ var/datum/subsystem/lighting/SSlighting
|
||||
A.luminosity = 0
|
||||
|
||||
create_all_lighting_overlays()
|
||||
global.lighting_overlays_initialized = TRUE
|
||||
|
||||
/datum/subsystem/lighting/fire()
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
corners[i] = new/datum/lighting_corner(src, LIGHTING_CORNER_DIAGONAL[i])
|
||||
|
||||
/turf/ChangeTurf(path)
|
||||
if(!path || (!use_preloader && path == type)) //Sucks this is here but it would cause problems otherwise.
|
||||
if(!path || (!use_preloader && path == type) || !global.lighting_overlays_initialized) //Sucks this is here but it would cause problems otherwise.
|
||||
return ..()
|
||||
|
||||
if (!lighting_corners_initialised)
|
||||
|
||||
Reference in New Issue
Block a user