mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user