Skip to content

Commit

Permalink
fix illegal Float class access
Browse files Browse the repository at this point in the history
  • Loading branch information
EdrowsLuo committed Jan 9, 2022
1 parent f91edec commit 2a06bef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ru/nsu/ccfit/zuev/osu/game/GameHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ public static ArrayList<PointF> parseSection(
int index = 0;

final ArrayList<Float> ts = new ArrayList<Float>();
ts.add(new Float(0));
ts.add(new Float(0.5f));
ts.add(new Float(1));
ts.add(0f);
ts.add(0.5f);
ts.add(1F);
float step2 = Constants.SLIDER_STEP * scale;
// if (Config.isLowpolySliders() == false) {
// step2 = Constants.HIGH_SLIDER_STEP * scale;
Expand Down Expand Up @@ -276,7 +276,7 @@ public static SliderPath calculatePath(final PointF pos,
if (path.points.size() == 1) {
path.points.add(new PointF(path.points.get(0).x,
path.points.get(0).y));
path.length.add(new Float(0));
path.length.add(0f);
}

return path;
Expand Down
2 changes: 1 addition & 1 deletion src/ru/nsu/ccfit/zuev/osu/game/Slider.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class Slider extends GameObject {
private Sprite followcircle;

private PointF tmpPoint = new PointF();
private Float ballAngle = new Float(0);
private Float ballAngle = 0f;
private SpriteGroup group = null;
private SpriteGroup borderGroup = null;
private Polygon trackPoly = null;
Expand Down

0 comments on commit 2a06bef

Please sign in to comment.