A few general fixes.

This commit is contained in:
smoogipooo 2017-04-04 14:31:50 +09:00
parent 5e67bcb581
commit 1d4a371ded
1 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,7 @@ public static void Register()
}
private SampleSet defaultSampleSet;
private int defaultSampleVolume;
private int defaultSampleVolume = 100;
private bool samplesMatchPlaybackRate;
private readonly int beatmapVersion;
@ -309,7 +309,7 @@ protected override void ParseFile(StreamReader stream, Beatmap beatmap)
{
beatmap.BeatmapInfo.BeatmapVersion = beatmapVersion;
HitObjectParser parser = null;
HitObjectParser parser = new LegacyHitObjectParser();
Section section = Section.None;
bool hasCustomColours = false;
@ -343,7 +343,6 @@ protected override void ParseFile(StreamReader stream, Beatmap beatmap)
{
case Section.General:
handleGeneral(beatmap, key, val);
parser = new LegacyHitObjectParser();
break;
case Section.Editor:
handleEditor(beatmap, key, val);