Fix Disposal pipe construction runtime.

This commit is contained in:
phil235
2014-11-07 17:12:16 +01:00
parent 4c78b6bf30
commit aa9873d7ff
@@ -215,7 +215,8 @@
playsound(src.loc, 'sound/items/Welder2.ogg', 100, 1)
user << "Welding the [nicetype] in place."
if(do_after(user, 20))
if(!src || !W.isOn()) return
if(!src.loc || !W.isOn())
return
user << "The [nicetype] has been welded in place!"
update() // TODO: Make this neat
if(ispipe) // Pipe