This commit is contained in:
PJB3005
2017-02-08 15:07:58 +01:00
parent 8ce6ae2b87
commit 3c8b98a3aa
12 changed files with 19 additions and 41 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
// Creates or destroys it if needed, makes it update values, makes sure it's got the correct source turf...
/atom/proc/update_light()
set waitfor = FALSE
if (qdeleted(src))
if (QDELETED(src))
return
if (!light_power || !light_range) // We won't emit light anyways, destroy the light source.
+3 -8
View File
@@ -44,7 +44,7 @@
T.luminosity = 1
..()
return QDEL_HINT_PUTINPOOL
return QDEL_HINT_QUEUE
else
return QDEL_HINT_LETMELIVE
@@ -53,10 +53,10 @@
var/turf/T = loc
if (!istype(T)) // Erm...
if (loc)
warning("A lighting overlay realised its loc was NOT a turf (actual loc: [loc], [loc.type]) in update_overlay() and got pooled!")
warning("A lighting overlay realised its loc was NOT a turf (actual loc: [loc], [loc.type]) in update_overlay()!")
else
warning("A lighting overlay realised it was in nullspace in update_overlay() and got pooled!")
warning("A lighting overlay realised it was in nullspace in update_overlay()!")
qdel(src, TRUE)
return
@@ -109,8 +109,3 @@
/atom/movable/lighting_overlay/forceMove(atom/destination, var/no_tp=FALSE, var/harderforce = FALSE)
if(harderforce)
. = ..()
/atom/movable/lighting_overlay/ResetVars(...)
color = LIGHTING_BASE_MATRIX
return ..("color")
+1 -1
View File
@@ -13,4 +13,4 @@
if (!IS_DYNAMIC_LIGHTING(A))
continue
PoolOrNew(/atom/movable/lighting_overlay, list(T, TRUE))
new/atom/movable/lighting_overlay(T, TRUE)
+2 -2
View File
@@ -37,7 +37,7 @@
if (!lighting_corners_initialised)
generate_missing_corners()
PoolOrNew(/atom/movable/lighting_overlay, src)
new/atom/movable/lighting_overlay(src)
for (var/datum/lighting_corner/C in corners)
if (!C.active) // We would activate the corner, calculate the lighting for it.
@@ -68,7 +68,7 @@
/turf/proc/is_softly_lit()
if (!lighting_overlay)
return FALSE
return !lighting_overlay.luminosity
// Can't think of a good name, this proc will recalculate the has_opaque_atom variable.