One runtime fixed, other one didn't turn up.

I put in some stuff for it to be easier to find if it does.
This commit is contained in:
Aryn
2014-03-06 09:54:18 -07:00
parent d9885dac74
commit 7e08bca4ef
3 changed files with 12 additions and 7 deletions

View File

@@ -91,6 +91,11 @@ atom/movable/New()
opacity = 0
SetOpacity(1)
atom/movable/Del()
if(light) light.Off()
if(opacity) SetOpacity(0)
. = ..()
atom/movable/Move()
var/o = opacity
if(o) SetOpacity(0)
@@ -171,10 +176,9 @@ turf/proc/ResetAllLights()
/turf/space/ResetAllLights()
var/atom/movable/lighting_overlay/overlay = locate() in src
if (overlay)
overlay.loc = null
light_overlay = null
is_outside = 1
if(overlay) overlay.loc = null
light_overlay = null
is_outside = 1
. = ..()
turf/proc/ResetValue()

View File

@@ -28,6 +28,7 @@ light/var/list/lit_turfs
light/var/atom/atom
light/New(atom/atom)
ASSERT(atom)
src.atom = atom
light/proc/Reset()
@@ -48,8 +49,7 @@ light/proc/Off()
lit_turfs = list()
light/proc/CalculateBrightness(turf/T)
if (!atom)
return 0
ASSERT(T)
var/square = get_square_dist(atom.x,atom.y,atom.z,T.x,T.y,T.z)
if(square > (radius+2)*(radius+2)) return 0
//+2 offset gives an ambient light effect.

View File

@@ -2,7 +2,8 @@
var/global/list/uneatable = list(
/turf/space,
/obj/effect/overlay
/obj/effect/overlay,
/atom/movable/lighting_overlay //Because apparently this needs to be outright stated and even /atom/movable gives energy regardless.
)
/obj/machinery/singularity/