From 889b2e56c959f4d313bb5556aa8a98c14d2b7c7f Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sun, 4 Sep 2011 21:33:34 +0000 Subject: [PATCH] Conveyor will now move only 10 items per cycle. Realism can kiss my ass, I'm tired of miners dumping a million pieces of ore on it and then turning it on, thus grinding the entire server to a near halt. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2114 316c924e-a436-60f5-8080-3fe189b3f50e --- code/WorkInProgress/recycling/conveyor.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/WorkInProgress/recycling/conveyor.dm b/code/WorkInProgress/recycling/conveyor.dm index ce1acbaf559..58b3c50d966 100644 --- a/code/WorkInProgress/recycling/conveyor.dm +++ b/code/WorkInProgress/recycling/conveyor.dm @@ -67,6 +67,7 @@ affecting = loc.contents - src // moved items will be all in loc spawn(1) // slight delay to prevent infinite propagation due to map order + var/items_moved = 0 for(var/atom/movable/A in affecting) if(!A.anchored) if(isturf(A.loc)) // this is to prevent an ugly bug that forces a player to drop what they're holding if they recently pick it up from the conveyer belt @@ -84,6 +85,9 @@ step(M,movedir) else step(A,movedir) + items_moved++ + if(items_moved >= 10) + break // attack with item, place item on conveyor