Remove unnecessary re-creation of curve.
This commit is contained in:
parent
2e5226ecd5
commit
eadbdbee78
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user