mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes lighting not updating opacity on atom delete (#25139)
This commit is contained in:
committed by
AnturK
parent
6339ce469c
commit
c74f961abc
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user