From aa30a12125518d074e32debc1914329cc75d954c Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sat, 4 Jul 2015 17:55:41 +0200 Subject: [PATCH] Fixes another bug --- code/game/turfs/turf.dm | 6 +----- code/modules/lighting/lighting_overlay.dm | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 94919b8589..ac6b236e80 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -33,7 +33,7 @@ var/holy = 0 var/dynamic_lighting = 1 - luminosity = 0 + luminosity = 1 /turf/New() ..() @@ -43,10 +43,6 @@ return turfs |= src - var/area/A = loc - if(!dynamic_lighting || !A.lighting_use_dynamic) - luminosity = 1 - /turf/Destroy() turfs -= src ..() diff --git a/code/modules/lighting/lighting_overlay.dm b/code/modules/lighting/lighting_overlay.dm index 47365d6d36..a0bba14eeb 100644 --- a/code/modules/lighting/lighting_overlay.dm +++ b/code/modules/lighting/lighting_overlay.dm @@ -21,6 +21,9 @@ . = ..() verbs.Cut() + var/turf/T = loc //If this runtimes atleast we'll know what's creating overlays in things that aren't turfs. + T.luminosity = 0 + /atom/movable/lighting_overlay/proc/update_lumcount(delta_r, delta_g, delta_b) if(!delta_r && !delta_g && !delta_b) //Nothing is being changed all together. return