Skip to content

Commit

Permalink
modify recursion limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Sep 20, 2024
1 parent c213076 commit 6a3fac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/ai/fortify_room.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a3fac2

Please sign in to comment.