From 0d92d79ed747eb97aa56e44121fed6b202b903f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Han Date: Thu, 22 Dec 2016 14:37:23 -0500 Subject: [PATCH] Fix beatmap array fields not being loaded. (fixes #222, blame: #214) Signed-off-by: Jeffrey Han --- src/itdelatrisu/opsu/beatmap/BeatmapDifficultyCalculator.java | 2 +- src/itdelatrisu/opsu/states/Game.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/itdelatrisu/opsu/beatmap/BeatmapDifficultyCalculator.java b/src/itdelatrisu/opsu/beatmap/BeatmapDifficultyCalculator.java index 6cf29528..45075b55 100644 --- a/src/itdelatrisu/opsu/beatmap/BeatmapDifficultyCalculator.java +++ b/src/itdelatrisu/opsu/beatmap/BeatmapDifficultyCalculator.java @@ -81,7 +81,7 @@ public class BeatmapDifficultyCalculator { */ public BeatmapDifficultyCalculator(Beatmap beatmap) { this.beatmap = beatmap; - if (beatmap.timingPoints == null) + if (beatmap.breaks == null) BeatmapDB.load(beatmap, BeatmapDB.LOAD_ARRAY); BeatmapParser.parseHitObjects(beatmap); } diff --git a/src/itdelatrisu/opsu/states/Game.java b/src/itdelatrisu/opsu/states/Game.java index 549b3c32..b45c3303 100644 --- a/src/itdelatrisu/opsu/states/Game.java +++ b/src/itdelatrisu/opsu/states/Game.java @@ -1532,7 +1532,7 @@ public class Game extends BasicGameState { public void loadBeatmap(Beatmap beatmap) { this.beatmap = beatmap; Display.setTitle(String.format("%s - %s", game.getTitle(), beatmap.toString())); - if (beatmap.timingPoints == null) + if (beatmap.breaks == null) BeatmapDB.load(beatmap, BeatmapDB.LOAD_ARRAY); BeatmapParser.parseHitObjects(beatmap); HitSound.setDefaultSampleSet(beatmap.sampleSet);