Remove unnecessary re-creation of curve.

This commit is contained in:
Pavel Kolchev 2015-03-29 03:06:26 +03:00
parent 2e5226ecd5
commit eadbdbee78

View File

@ -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