Fixing Dancer

This commit is contained in:
Awlex 2016-11-19 22:16:36 +01:00
parent b01033edd5
commit 21aa986ea9

View File

@ -266,9 +266,8 @@ public class Dancer {
double[] spinnerStartPoint = spinner.getPoint();
c.start = new Vec2f((float) spinnerStartPoint[0], (float) spinnerStartPoint[1]);
}
// polyMoverFactory.init(gameObjects, objectIndex);
if (polyMoverFactory.isInitialized() && polyMoverFactory.getLatestIndex() < objectIndex + polyMoverFactory.getPrefferedBufferSize() - 1) {
polyMoverFactory.update(gameObjects[polyMoverFactory.getLatestIndex()]);
polyMoverFactory.update(gameObjects[ objectIndex + polyMoverFactory.getPrefferedBufferSize() - 1]);
}
else {
polyMoverFactory.init(gameObjects, objectIndex);