Fixes despawned TF items spitting out visible voice ghost mobs for all to see. (#6745)

This commit is contained in:
Verkister
2023-08-07 15:43:35 +03:00
committed by GitHub
parent dc60029317
commit 2ff89d38d5
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -421,6 +421,9 @@
items -= announce // or the autosay radio.
for(var/obj/item/W in items)
if(islist(W.possessed_voice)) //CHOMPAdd
for(var/mob/living/V in W.possessed_voice)
despawn_occupant(V)
//VOREStation Addition Start
if(istype(W, /obj/item/device/pda))
var/obj/item/device/pda/found_pda = W
@@ -66,7 +66,7 @@
for(var/atom/movable/A in affecting)
if(!isobj(A) && !isliving(A))
continue
if(istype(A, /obj/effect/decal/cleanable))
if(istype(A, /obj/effect/decal/cleanable) || istype(A, /mob/living/voice))
qdel(A)
if(!A.anchored)
if(A.loc == src.loc)