From d880b61cfdc151dff9f4fead2f1f50b6c0b37db5 Mon Sep 17 00:00:00 2001 From: Aronai Sieyes Date: Sun, 5 Apr 2020 11:58:14 -0400 Subject: [PATCH] CHECK_TICK in xenoarch setup for the sake of largermaps --- code/controllers/subsystems/xenoarch.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/controllers/subsystems/xenoarch.dm b/code/controllers/subsystems/xenoarch.dm index c8184d783e..2e22213ee6 100644 --- a/code/controllers/subsystems/xenoarch.dm +++ b/code/controllers/subsystems/xenoarch.dm @@ -99,6 +99,9 @@ SUBSYSTEM_DEF(xenoarch) if(isnull(M.artifact_find) && digsite != DIGSITE_GARDEN && digsite != DIGSITE_ANIMAL) artifact_spawning_turfs.Add(archeo_turf) + //Larger maps will convince byond this is an infinite loop, so let go for a second + CHECK_TICK + //create artifact machinery var/num_artifacts_spawn = rand(ARTIFACTSPAWNNUM_LOWER, ARTIFACTSPAWNNUM_UPPER) while(artifact_spawning_turfs.len > num_artifacts_spawn)