Fixes dead demon rendering when dying in a clown car (#29970)

* Fixes dead demon rendering when dying in a clown car

* Better implementation, fixes more shit
This commit is contained in:
PollardTheDragon
2025-08-07 12:11:33 -04:00
committed by GitHub
parent 9eb14dea90
commit 32c1d64849
2 changed files with 4 additions and 0 deletions
@@ -303,6 +303,8 @@ RESTRICT_TYPE(/mob/living/basic)
if(HAS_TRAIT(src, TRAIT_XENOBIO_SPAWNED))
SSmobs.xenobiology_mobs--
if(basic_mob_flags & DEL_ON_DEATH)
// Moves them to their turf to prevent rendering problems
forceMove(get_turf(src))
// From simplemob implementation; prevent infinite loops if the mob
// Destroy() is overridden in such a manner as to cause a call to
// death() again. One hopes this isn't still necessary but whatevs