Remove unnecessary re-creation of curve.
This commit is contained in:
@@ -455,11 +455,6 @@ public class Slider implements HitObject {
|
|||||||
public void updatePosition() {
|
public void updatePosition() {
|
||||||
this.x = hitObject.getScaledX();
|
this.x = hitObject.getScaledX();
|
||||||
this.y = hitObject.getScaledY();
|
this.y = hitObject.getScaledY();
|
||||||
|
|
||||||
if (hitObject.getSliderType() == OsuHitObject.SLIDER_PASSTHROUGH && hitObject.getSliderX().length == 2)
|
|
||||||
this.curve = new CircumscribedCircle(hitObject, color);
|
|
||||||
else
|
|
||||||
this.curve = new LinearBezier(hitObject, color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user