fix first slidermover derping
This commit is contained in:
parent
6e4d34b3c5
commit
bf517eeb07
|
@ -268,19 +268,17 @@ public class Dancer {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GameObject p = null;
|
GameObject p = d;
|
||||||
if (objectIndex > 0) {
|
if (objectIndex > 0) {
|
||||||
p = gameObjects[objectIndex - 1];
|
p = gameObjects[objectIndex - 1];
|
||||||
GameObject[] e = sliderMoverController.process(p, c, MusicController.getPosition());
|
|
||||||
p = e[0];
|
|
||||||
c = e[1];
|
|
||||||
}
|
}
|
||||||
if (mover == null || mover.getEnd() != c) {
|
GameObject[] e = sliderMoverController.process(p, c, MusicController.getPosition());
|
||||||
if (objectIndex == 0) {
|
p = e[0];
|
||||||
mover = new LinearMover(d, c, dir);
|
c = e[1];
|
||||||
} else {
|
if (mover == null || p == d) {
|
||||||
mover = moverFactory.create(p, c, dir);
|
mover = new LinearMover(d, c, dir);
|
||||||
}
|
} else if (mover.getEnd() != c) {
|
||||||
|
mover = moverFactory.create(p, c, dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user