Merge pull request #9069 from Boggart/allowdisposalpipesonwalls

Fixes being unable to construct disposal pipes on walls, an RPD bug and moves it over to the datum/browser ui.
This commit is contained in:
Swag McYolosteinen
2015-04-23 20:26:16 +02:00
3 changed files with 129 additions and 61 deletions
@@ -170,10 +170,14 @@
nicetype = "pipe"
var/turf/T = loc
if(T.intact)
if(T.intact && istype(T, /turf/simulated/floor))
user << "You can only attach the [nicetype] if the floor plating is removed."
return
if(!ispipe && istype(T, /turf/simulated/wall))
user << "You can't build [nicetype]s on walls, only disposal pipes."
return
var/obj/structure/disposalpipe/CP = locate() in T
if(istype(I, /obj/item/weapon/wrench))