Added support for floating-point difficulty values (v13).

Thanks to Marcin for the info and FieryLight for the report.
This commit is contained in:
Jeffrey Han
2014-06-30 04:03:39 -04:00
parent 9da166f60f
commit 6bdb026447
8 changed files with 37 additions and 37 deletions

View File

@@ -253,8 +253,8 @@ public class Slider {
* @param osu the associated OsuFile object
* @throws SlickException
*/
public static void init(GameContainer container, byte circleSize, OsuFile osu) throws SlickException {
int diameter = 96 - (circleSize * 8);
public static void init(GameContainer container, float circleSize, OsuFile osu) throws SlickException {
int diameter = (int) (96 - (circleSize * 8));
diameter = diameter * container.getWidth() / 640; // convert from Osupixels (640x480)
sliderBall = new Animation();