mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Fixes another bug
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
var/holy = 0
|
var/holy = 0
|
||||||
|
|
||||||
var/dynamic_lighting = 1
|
var/dynamic_lighting = 1
|
||||||
luminosity = 0
|
luminosity = 1
|
||||||
|
|
||||||
/turf/New()
|
/turf/New()
|
||||||
..()
|
..()
|
||||||
@@ -43,10 +43,6 @@
|
|||||||
return
|
return
|
||||||
turfs |= src
|
turfs |= src
|
||||||
|
|
||||||
var/area/A = loc
|
|
||||||
if(!dynamic_lighting || !A.lighting_use_dynamic)
|
|
||||||
luminosity = 1
|
|
||||||
|
|
||||||
/turf/Destroy()
|
/turf/Destroy()
|
||||||
turfs -= src
|
turfs -= src
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -21,6 +21,9 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
verbs.Cut()
|
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)
|
/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.
|
if(!delta_r && !delta_g && !delta_b) //Nothing is being changed all together.
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user