This commit is contained in:
L
2020-07-16 11:14:05 -03:00
parent 8f66088b0f
commit 52bf8a66f9
6 changed files with 110 additions and 82 deletions
-9
View File
@@ -48,15 +48,6 @@
else
light = new/datum/light_source(src, .)
// If we have opacity, make sure to tell (potentially) affected light sources.
/atom/movable/Destroy()
var/turf/T = loc
. = ..()
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).