From 16ea3bde04f908d72216534f9d05017d50591010 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Wed, 5 Mar 2014 20:37:02 -0500 Subject: [PATCH] Compile fixes --- code/game/objects/items/devices/powersink.dm | 6 +++--- code/modules/power/cable.dm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/game/objects/items/devices/powersink.dm b/code/game/objects/items/devices/powersink.dm index f164bcca623..088a51574ab 100644 --- a/code/game/objects/items/devices/powersink.dm +++ b/code/game/objects/items/devices/powersink.dm @@ -31,7 +31,7 @@ user << "No exposed cable here to attach to." return else - attached.attached = src +// attached.attached = src anchored = 1 mode = 1 user << "You attach the device to the cable." @@ -48,7 +48,7 @@ anchored = 0 mode = 0 user << "You detach the device from the cable." - attached.attached = null +// attached.attached = null attached = null for(var/mob/M in viewers(user)) if(M == user) continue @@ -63,7 +63,7 @@ Destroy() SetLuminosity(0) processing_objects.Remove(src) - attached.attached = null +// attached.attached = null attached = null ..() diff --git a/code/modules/power/cable.dm b/code/modules/power/cable.dm index 797e472933b..e30dab34734 100644 --- a/code/modules/power/cable.dm +++ b/code/modules/power/cable.dm @@ -90,14 +90,14 @@ if(powernet) powernet.cut_cable(src) // update the powernets cable_list -= src - if(istype(attached)) +/* if(istype(attached)) attached.SetLuminosity(0) attached.icon_state = "powersink0" attached.mode = 0 processing_objects.Remove(attached) attached.anchored = 0 attached.attached = null - attached = null + attached = null*/ ..() // then go ahead and delete the cable /obj/structure/cable/hide(var/i) @@ -631,4 +631,4 @@ obj/structure/cable/proc/cableColor(var/colorC) else user << "Nothing to fix!" else - return ..() + return ..()