fixing CP var

This commit is contained in:
phil235
2014-04-05 17:35:12 +02:00
parent d07450ad47
commit 21cb80b79e
@@ -170,7 +170,7 @@
user << "You can only attach the [nicetype] if the floor plating is removed."
return
var/obj/structure/disposalpipe/CP = locate() in T
if(istype(I, /obj/item/weapon/wrench))
if(anchored)
@@ -182,7 +182,6 @@
density = 1
user << "You detach the [nicetype] from the underfloor."
else
var/obj/structure/disposalpipe/CP = locate() in T
if(ptype>=6 && ptype <= 8) // Disposal or outlet
if(CP) // There's something there
if(!istype(CP,/obj/structure/disposalpipe/trunk))