Sanitizes ghost spawners' names when adding them to GLOB.mob_spawners because \improper is still a pain in the ass (#91692)

This commit is contained in:
Sealed101
2025-06-20 01:08:31 +03:00
committed by Roxy
parent 71f6251914
commit 57f09712cd
+3 -3
View File
@@ -141,13 +141,13 @@
/obj/effect/mob_spawn/ghost_role/Initialize(mapload)
. = ..()
SSpoints_of_interest.make_point_of_interest(src)
LAZYADD(GLOB.mob_spawners[name], src)
LAZYADD(GLOB.mob_spawners[format_text(name)], src)
/obj/effect/mob_spawn/ghost_role/Destroy()
var/list/spawners = GLOB.mob_spawners[name]
var/list/spawners = GLOB.mob_spawners[format_text(name)]
LAZYREMOVE(spawners, src)
if(!LAZYLEN(spawners))
GLOB.mob_spawners -= name
GLOB.mob_spawners -= format_text(name)
return ..()
//ATTACK GHOST IGNORING PARENT RETURN VALUE