Made the loader not go in a straight line
This commit is contained in:
parent
fcae070f7f
commit
4609e3fc3c
1 changed files with 5 additions and 3 deletions
|
@ -83,14 +83,16 @@ public class LoadProcess implements Runnable
|
||||||
d = 0;
|
d = 0;
|
||||||
D++;
|
D++;
|
||||||
switch (c){
|
switch (c){
|
||||||
case 1 : currentRegion[0]++;
|
case 1 : currentRegion[0]++; break;
|
||||||
case 2 : currentRegion[1]++;
|
case 2 : currentRegion[1]++; break;
|
||||||
case 3 : currentRegion[0]--;
|
case 3 : currentRegion[0]--; break;
|
||||||
case 4 :
|
case 4 :
|
||||||
currentRegion[1]--;
|
currentRegion[1]--;
|
||||||
c = B ? 1 : c + 1;
|
c = B ? 1 : c + 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
B = !B;
|
B = !B;
|
||||||
|
c++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
final boolean isFinished(){
|
final boolean isFinished(){
|
||||||
|
|
Loading…
Reference in a new issue