added a thing (#11707)

This commit is contained in:
Maxim
2021-07-18 08:42:43 -04:00
committed by GitHub
parent c8bceffb89
commit 1fc34a9189
5 changed files with 75 additions and 2 deletions

View File

@@ -78,6 +78,9 @@
var/chat_color_darkened // A luminescence-shifted value of the last color calculated for chatmessage overlays
///Mobs that are currently do_after'ing this atom, to be cleared from on Destroy()
var/list/targeted_by
var/atom/orbit_target //Reference to atom being orbited
/**
* Called when an atom is created in byond (built in engine proc)
@@ -215,6 +218,12 @@
LAZYCLEARLIST(overlays)
LAZYCLEARLIST(priority_overlays)
for(var/i in targeted_by)
var/mob/M = i
LAZYREMOVE(M.do_afters, src)
targeted_by = null
QDEL_NULL(light)
return ..()