fix slider leftovers being drawn
This commit is contained in:
parent
8f9f16de98
commit
06445e59c4
|
@ -913,7 +913,7 @@ public class GameData {
|
||||||
float oldColorAlpha = hitResult.color.a;
|
float oldColorAlpha = hitResult.color.a;
|
||||||
Colors.WHITE_FADE.a = alpha;
|
Colors.WHITE_FADE.a = alpha;
|
||||||
hitResult.color.a = alpha;
|
hitResult.color.a = alpha;
|
||||||
hitResult.curve.draw(hitResult.color);
|
//hitResult.curve.draw(hitResult.color);
|
||||||
Colors.WHITE_FADE.a = oldWhiteAlpha;
|
Colors.WHITE_FADE.a = oldWhiteAlpha;
|
||||||
hitResult.color.a = oldColorAlpha;
|
hitResult.color.a = oldColorAlpha;
|
||||||
}
|
}
|
||||||
|
|
|
@ -557,6 +557,7 @@ public class Slider extends GameObject {
|
||||||
|
|
||||||
// calculate and send slider result
|
// calculate and send slider result
|
||||||
hitResult();
|
hitResult();
|
||||||
|
game.setSlidercurveFrom(baseSliderFrom + curve.getCurvePoints().length);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -280,13 +280,14 @@ public class CurveRenderState {
|
||||||
float last_y = curve[i - 1].y;
|
float last_y = curve[i - 1].y;
|
||||||
double diff_x = x - last_x;
|
double diff_x = x - last_x;
|
||||||
double diff_y = y - last_y;
|
double diff_y = y - last_y;
|
||||||
if (diff_x < Circle.diameter / 8 && diff_y < Circle.diameter / 8) {
|
float dist = Utils.distance(x, y, last_x, last_y);
|
||||||
|
if (dist < Circle.diameter / 8) {
|
||||||
x = (float) (x - diff_x / 2);
|
x = (float) (x - diff_x / 2);
|
||||||
y = (float) (y - diff_y / 2);
|
y = (float) (y - diff_y / 2);
|
||||||
} else {
|
} else {
|
||||||
x = curve[i+1].x;
|
// don't mind me
|
||||||
y = curve[i+1].y;
|
x = -100f;
|
||||||
System.out.println("next");
|
y = -100f;
|
||||||
}
|
}
|
||||||
fillCone(buff, x, y);
|
fillCone(buff, x, y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user