Lighting minor tweak (#17560)

* Atomization

* sfdsaf

---------

Co-authored-by: FluffyGhost <FluffyGhost>
This commit is contained in:
Fluffy
2023-10-12 23:19:40 +02:00
committed by GitHub
parent 0722916767
commit 43018d6504
3 changed files with 48 additions and 4 deletions

View File

@@ -404,9 +404,10 @@
var/list/L = turfs - affecting_turfs // New turfs, add us to the affecting lights of them.
affecting_turfs += L
for (thing in L)
T = thing
LAZYADD(T.affecting_lights, src)
for (var/turf/affected_turf as anything in L)
if(!QDELETED(affected_turf))
T = affected_turf
LAZYADD(T.affecting_lights, src)
L = affecting_turfs - turfs // Now-gone turfs, remove us from the affecting lights.
affecting_turfs -= L