object pooled pipe items!

This commit is contained in:
D3athrow
2015-02-10 23:38:03 -06:00
parent ca132db088
commit 22c812dddd
21 changed files with 110 additions and 60 deletions

View File

@@ -1121,9 +1121,10 @@
"[user] unfastens \the [src].", \
"<span class='notice'>You have unfastened \the [src].</span>", \
"You hear a ratchet.")
new /obj/item/pipe(loc, make_from=src)
var/obj/item/pipe/P = getFromPool(/obj/item/pipe,loc)
P.New(loc, make_from=src) //new /obj/item/pipe(loc, make_from=src)
for (var/obj/machinery/meter/meter in T)
if (meter.target == src)
new /obj/item/pipe_meter(T)
del(meter)
qdel(meter)
qdel(src)