Skip to content
Snippets Groups Projects
Commit 83ae808b authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

Place in Line Fix

Closes #168

See merge request pregmodfan/fc-pregmod!2162
parents d0026ff5 29bcf91b
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,8 @@
<<if ($activeSlave.assignmentVisible == 1)>>
<<for _pil = _activeSlaveIndex - 1; _pil != _activeSlaveIndex; _pil-->> /* loops backwards through the $slaves array */
<<if _pil < 0>>
<<set _pil = _SL - 1>>
<<set _pil = _SL>>
<<continue>>
<</if>>
<<if $slaves[_pil].assignmentVisible == 1>>
<<set $slavesInLine.push(_pil)>> /* index of the previous slave in line */
......@@ -18,7 +19,8 @@
<</for>>
<<for _pil = _activeSlaveIndex + 1; _pil != _activeSlaveIndex; _pil++>> /* this loops forwards through the $slaves array */
<<if _pil == _SL>>
<<set _pil = 0>>
<<set _pil = -1>>
<<continue>>
<</if>>
<<if $slaves[_pil].assignmentVisible == 1>>
<<set $slavesInLine.push(_pil)>> /* index of the next slave in line */
......@@ -28,7 +30,8 @@
<<else>>
<<for _pil = _activeSlaveIndex - 1; _pil != _activeSlaveIndex; _pil-->> /* loops backwards through the $slaves array */
<<if _pil < 0>>
<<set _pil = _SL - 1>>
<<set _pil = _SL>>
<<continue>>
<</if>>
<<if ($slaves[_pil].assignment == $activeSlave.assignment)>>
<<set $slavesInLine.push(_pil)>> /* index of the previous slave in line */
......@@ -37,7 +40,8 @@
<</for>>
<<for _pil = _activeSlaveIndex + 1; _pil != _activeSlaveIndex; _pil++>> /* this loops forwards through the $slaves array */
<<if _pil == _SL>>
<<set _pil = 0>>
<<set _pil = -1>>
<<continue>>
<</if>>
<<if ($slaves[_pil].assignment == $activeSlave.assignment)>>
<<set $slavesInLine.push(_pil)>> /* index of the next slave in line */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment