Skip to content

Commit

Permalink
Fixes reverse flowing belts (#37355)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitak authored Jan 6, 2025
1 parent d221546 commit d782c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/recycling/conveyor2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
var/turf/T = get_step(loc, directions[i])
var/obj/machinery/conveyor/C = locate() in T
if(C && (C.dir & C.dir-1) && !C.smoothed) //found an unsmoothed diagonal conveyor belt
var/list/secondarydirections = conveyor_directions(C.dir) //retrieve its dirs
var/list/secondarydirections = conveyor_directions(C.dir, C.in_reverse) //retrieve its dirs
if(directions[i] == opposite_dirs[secondarydirections[i]]) //check if the direction it is pointing is towards/away from us, if necessary reverse it
in_reverse = 1
C.smoothed = 1
Expand Down

0 comments on commit d782c32

Please sign in to comment.