mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-02 05:23:01 +00:00
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:
@@ -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()
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user