diff --git a/code/game/atoms.dm b/code/game/atoms.dm index 63f2f9ef2f9..b09cbf2a2e4 100644 --- a/code/game/atoms.dm +++ b/code/game/atoms.dm @@ -457,6 +457,12 @@ var/list/blood_splatter_icons = list() //This proc is called on the location of an atom when the atom is Destroy()'d /atom/proc/handle_atom_del(atom/A) +//called when the turf the atom resides on is ChangeTurfed +/atom/proc/HandleTurfChange(turf/T) + for(var/a in src) + var/atom/A = a + A.HandleTurfChange(T) + // Byond seemingly calls stat, each tick. // Calling things each tick can get expensive real quick. // So we slow this down a little. diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 2cfbbde2804..2a870c533a6 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -249,6 +249,8 @@ queue_smooth_neighbors(src) + HandleTurfChange(src) + /turf/open/AfterChange(ignore_air) ..() RemoveLattice()