diff --git a/code/modules/events/ghost_role.dm b/code/modules/events/ghost_role.dm index 2468ddb5c6..f5e9513b2e 100644 --- a/code/modules/events/ghost_role.dm +++ b/code/modules/events/ghost_role.dm @@ -26,9 +26,7 @@ var/waittime = 300 * (2^retry) message_admins("The event will not spawn a [role_name] until certain \ conditions are met. Waiting [waittime/10]s and then retrying.") - spawn(waittime) - // I hope this doesn't end up running out of stack space - try_spawning(0,++retry) + addtimer(CALLBACK(src, .proc/try_spawning, 0, ++retry), waittime) return if(status == MAP_ERROR) @@ -69,4 +67,4 @@ return candidates -#undef MAX_SPAWN_ATTEMPT \ No newline at end of file +#undef MAX_SPAWN_ATTEMPT