From 6a3fac28effededaea9fb22abda7d0dde68a31ce Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 19 Sep 2024 18:26:18 -0700 Subject: [PATCH] modify recursion limit --- code/modules/mob/living/carbon/human/ai/fortify_room.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/ai/fortify_room.dm b/code/modules/mob/living/carbon/human/ai/fortify_room.dm index 9a970c937f..130c076e17 100644 --- a/code/modules/mob/living/carbon/human/ai/fortify_room.dm +++ b/code/modules/mob/living/carbon/human/ai/fortify_room.dm @@ -30,7 +30,7 @@ to_chat(src, SPAN_NOTICE("Room too large to fully fortify. Capped at [length(turf_list)].")) /proc/recursive_turf_room_fortify(turf/scan_turf, list/turf_list, cade_type, folding_cade_type) - if(length(turf_list) > 256) + if(length(turf_list) > 195) // We're choosing 195 because 200 is the BYOND recursion limit so we're just playing it safe return FALSE // abort if the room is too large if(istype(scan_turf, /turf/closed)) return TRUE // abort if we're a wall