mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Adds some sanity to lighting_source.dm (#17106)
* a little bit of sanity should fix it * instead goes for .Remove(src) as that has an internal check to see if the list has the object
This commit is contained in:
@@ -278,7 +278,8 @@
|
||||
L = affecting_turfs - turfs // Now-gone turfs, remove us from the affecting lights.
|
||||
affecting_turfs -= L
|
||||
for (var/turf/T in L)
|
||||
T.affecting_lights -= src
|
||||
if(T.affecting_lights)
|
||||
T.affecting_lights.Remove(src)
|
||||
|
||||
for (var/datum/lighting_corner/C in corners - effect_str) // New corners
|
||||
C.affecting += src
|
||||
|
||||
Reference in New Issue
Block a user