[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 <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-15 11:05:37 +01:00
committed by GitHub
co-authored by ShizCalev
parent 2c2db7082c
commit ae57b755ab
+3 -3
View File
@@ -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