mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
9/11
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user