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
This commit is contained in:
baloh.matevz
2011-09-04 21:33:34 +00:00
parent 3dcb7db442
commit 889b2e56c9

View File

@@ -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