Fixes lighting not updating opacity on atom delete (#25139)

This commit is contained in:
Kyle Spier-Swenson
2017-03-16 14:28:39 -07:00
committed by AnturK
parent 6339ce469c
commit c74f961abc

View File

@@ -59,10 +59,12 @@
// If we have opacity, make sure to tell (potentially) affected light sources.
/atom/movable/Destroy()
var/turf/T = loc
if (opacity && istype(T))
T.reconsider_lights()
. = ..()
if (opacity && istype(T))
var/old_has_opaque_atom = T.has_opaque_atom
T.recalc_atom_opacity()
if (old_has_opaque_atom != T.has_opaque_atom)
T.reconsider_lights()
// Should always be used to change the opacity of an atom.
// It notifies (potentially) affected light sources so they can update (if needed).