From ae57b755ab6812f3b2a3695247ab25a2c22f2d99 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:05:37 +0200 Subject: [PATCH] [MIRROR] fixes check power mapping debug option w/ multilayer wire support [MDB IGNORE] (#16250) * fixes check power mapping debug option w/ multilayer wire support (#69820) * fixes check power mapping debug option w/ multilayer wire support Co-authored-by: ShizCalev --- code/modules/admin/verbs/atmosdebug.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/verbs/atmosdebug.dm b/code/modules/admin/verbs/atmosdebug.dm index c0d290e0f67..01883ffcff1 100644 --- a/code/modules/admin/verbs/atmosdebug.dm +++ b/code/modules/admin/verbs/atmosdebug.dm @@ -45,12 +45,12 @@ results += "Powernet with fewer than 10 cables! (number [PN.number]) - example cable at [ADMIN_VERBOSEJMP(C)]" for(var/turf/T in world.contents) - var/found_one = FALSE + var/cable_layers //cache all cable layers (which are bitflags) present for(var/obj/structure/cable/C in T.contents) - if(found_one) + if(cable_layers & C.cable_layer) results += "Doubled wire at [ADMIN_VERBOSEJMP(C)]" else - found_one = TRUE + cable_layers |= C.cable_layer var/obj/machinery/power/terminal/term = locate(/obj/machinery/power/terminal) in T.contents if(term) var/obj/structure/cable/C = locate(/obj/structure/cable) in T.contents