From bb289c153b0263bddbfbad449d1c3029fd2b12be Mon Sep 17 00:00:00 2001 From: Bloop <13398309+vinylspiders@users.noreply.github.com> Date: Wed, 12 Mar 2025 21:01:31 -0400 Subject: [PATCH] Stops spurious ruins lattice CI runtimes (#89890) ## About The Pull Request Simply stops this from `stack_trace()`'ing in ruins, opting to `log_mapping()` instead. By changing it to use `log_mapping()` it will only cause CI failures if they occur on mining or station z levels, which should stop ruins weirdness from causing garbage outputs/failures in tests. As well as improving the debug logging by adding the area to the printout. ## Why It's Good For The Game There's really no point to complaining about a ruin spawning overlapping lattices after mapload when one of them just gets deleted anyway. Stops unhelpful stack_trace messages from blocking CI from passing. ## Changelog Not player facing. --- code/game/objects/structures/lattice.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/lattice.dm b/code/game/objects/structures/lattice.dm index 40bc738e2fb..7258ebe561c 100644 --- a/code/game/objects/structures/lattice.dm +++ b/code/game/objects/structures/lattice.dm @@ -49,7 +49,7 @@ for(var/obj/structure/lattice/LAT in loc) if(LAT == src) continue - stack_trace("multiple lattices found in ([loc.x], [loc.y], [loc.z])") + log_mapping("multiple lattices found in ([loc.x], [loc.y], [loc.z], [get_area(LAT)])") return INITIALIZE_HINT_QDEL /obj/structure/lattice/blob_act(obj/structure/blob/B)