Kills all unneeded uses of spawn() (#63876)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
LemonInTheDark
2022-01-10 23:22:29 -08:00
committed by GitHub
co-authored by Mothblocks
parent c31e3fd008
commit eea6591f56
5 changed files with 123 additions and 105 deletions
+4
View File
@@ -6,6 +6,10 @@
if(observetarget && ismob(observetarget))
cleanup_observe()
..()
// This is one of very few spawn()s left in our codebase
// Yes it needs to be like this
// No, you're not allowed to use spawn() yourself, unless you're making something that needs to work outside timers
// Don't be a dumbass, I will always be watching
spawn(0)
if(src && !key) //we've transferred to another mob. This ghost should be deleted.
qdel(src)