Fixed cable colors

- Fixed a couple of lines of code in power.dmi so that cables correctly update their color
- Fixed the contrast of the cable icons
This commit is contained in:
Loganbacca
2014-02-13 17:05:07 +13:00
parent 02810f7e89
commit d1b37a5392
3 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@
if(level==1) hide(T.intact)
cable_list += src
update_icon()
/obj/structure/cable/Del() // called when a cable is deleted
@@ -93,6 +94,7 @@
/obj/structure/cable/proc/updateicon()
icon_state = "[d1]-[d2]"
alpha = invisibility ? 127 : 255
color = cable_color
// returns the powernet this cable belongs to