Made the loader not go in a straight line

This commit is contained in:
Norbi Peti 2016-11-26 18:10:25 +01:00
parent fcae070f7f
commit 4609e3fc3c

View file

@ -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(){