fix shrinking sliders for fallback sliders

This commit is contained in:
yugecin 2016-12-05 00:35:11 +01:00
parent 7e82b05a56
commit d5296d51fa

View File

@ -416,7 +416,10 @@ public class Slider extends GameObject {
}
game.setSlidercurveTo(baseSliderFrom + (int) (curveIntervalTo * curve.getCurvePoints().length));
} else {
if (Options.isShrinkingSliders() && curveIntervalFrom > 0) {
if (Options.isFallbackSliders() && curveIntervalFrom > 0 && repeats % 2 == 0) {
curve.draw(curveColor, 1f - curveIntervalTo, 1f - curveIntervalFrom);
} else {
if (Options.isShrinkingSliders() && curveIntervalFrom > 0 && !Options.isFallbackSliders()) {
int curvelen = curve.getCurvePoints().length;
if (repeats % 2 == 0) {
curve.splice((int) ((1f - curveIntervalFrom) * curvelen), curvelen);
@ -425,6 +428,7 @@ public class Slider extends GameObject {
}
curve.draw(curveColor, curveIntervalFrom, curveIntervalTo);
}
}
return curveIntervalTo == 1f;
}