From f5fff3d937999cf0eb6afde7fc9c874364b45e57 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Thu, 12 Jul 2012 15:37:22 +0300 Subject: [PATCH] Re-added the limit of 10 items moved per tick, for conveyor belts --- code/modules/recycling/conveyor2.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index 9f59340ee0..eff057ee54 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -116,9 +116,15 @@ 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(items_moved >= 10) + break + 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 + items_moved++ if(!step(A,movedir)) //if it's a crate, move the item into the crate var/turf/T = get_step(A,movedir)