Conveyor movement refactor/fix

This commit is contained in:
CitadelStationBot
2017-04-21 17:28:09 -05:00
parent fc1fd4b72b
commit 1a93abc66e
7 changed files with 26 additions and 7 deletions
+2 -4
View File
@@ -108,10 +108,8 @@
affecting = loc.contents - src // moved items will be all in loc
sleep(1)
for(var/atom/movable/A in affecting)
if(!A.anchored)
if(A.loc == src.loc) // prevents the object from being affected if it's not currently here.
step(A,movedir)
CHECK_TICK
if(A.loc == loc)
A.ConveyorMove(movedir)
// attack with item, place item on conveyor
/obj/machinery/conveyor/attackby(obj/item/I, mob/user, params)