Merge pull request #1484 from Citadel-Station-13/upstream-merge-28187

[MIRROR] Removes a spawn
This commit is contained in:
LetterJay
2017-06-12 12:43:38 -05:00
committed by GitHub

View File

@@ -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
#undef MAX_SPAWN_ATTEMPT