Adds diagonal cable check on breaker box state change.

This commit is contained in:
PsiOmega
2014-10-12 12:55:19 +02:00
parent f6bab1bd08
commit ef9cc80603
+3
View File
@@ -85,6 +85,9 @@
C.mergeConnectedNetworks(C.d2)
C.mergeConnectedNetworksOnTurf()
if(C.d2 & (C.d2 - 1))// if the cable is layed diagonally, check the others 2 possible directions
C.mergeDiagonalsNetworks(C.d2)
else
icon_state = icon_state_off
for(var/obj/structure/cable/C in src.loc)