From a3016c82296ccce32219c9b8bcfd977890fc7b95 Mon Sep 17 00:00:00 2001 From: MrPerson Date: Thu, 3 Apr 2014 11:02:32 -0700 Subject: [PATCH] Fixes for a disposal runtime everytime something got flushed --- code/modules/recycling/disposal.dm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/code/modules/recycling/disposal.dm b/code/modules/recycling/disposal.dm index 6ac6489f4b4..15538ea6b9a 100644 --- a/code/modules/recycling/disposal.dm +++ b/code/modules/recycling/disposal.dm @@ -496,7 +496,12 @@ var/tomail = 0 //changes if contains wrapped package var/hasmob = 0 //If it contains a mob +/obj/structure/disposalholder/Destroy() + qdel(gas) + active = 0 + ..() +/obj/structure/disposalholder // initialize a holder from the contents of a disposal unit proc/init(var/obj/machinery/disposal/D) gas = D.air_contents// transfer gas resv. into holder object @@ -550,20 +555,13 @@ proc/move() var/obj/structure/disposalpipe/last while(active) - if(has_fat_guy && prob(2)) // chance of becoming stuck per segment if contains a fat guy - active = 0 - // find the fat guys - for(var/mob/living/carbon/human/H in src) - - break - sleep(1) // was 1 var/obj/structure/disposalpipe/curr = loc last = curr curr = curr.transfer(src) - if(!curr) + if(!curr && active) last.expel(src, loc, dir) - // + sleep(1) if(!(count--)) active = 0 return