1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 16:12:54 +08:00

Fix build errors.

This commit is contained in:
smoogipooo 2017-05-19 21:15:29 +09:00
parent 6ab7a91415
commit f8270f31a9

View File

@ -243,7 +243,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
/// <summary> /// <summary>
/// Whether this hit object can generate a note in the special column. /// Whether this hit object can generate a note in the special column.
/// </summary> /// </summary>
private bool hasSpecialColumn() => HitObject.Samples.Any(s => s.Name == SampleInfo.HIT_CLAP) && HitObject.Samples.Any(s => s.Name == SampleInfo.HIT_FINISH); private bool hasSpecialColumn => HitObject.Samples.Any(s => s.Name == SampleInfo.HIT_CLAP) && HitObject.Samples.Any(s => s.Name == SampleInfo.HIT_FINISH);
/// <summary> /// <summary>
/// Generates a random pattern. /// Generates a random pattern.
@ -260,7 +260,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
int noteCount = getRandomNoteCount(p2, p3, p4, p5); int noteCount = getRandomNoteCount(p2, p3, p4, p5);
int siblings = noteCount; int siblings = noteCount;
if (RandomStart > 0 && hasSpecialColumn(HitObject.Samples)) if (RandomStart > 0 && hasSpecialColumn)
{ {
siblings++; siblings++;
addToPattern(pattern, 0, siblings); addToPattern(pattern, 0, siblings);
@ -288,7 +288,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
if (addToCentre) if (addToCentre)
siblings++; siblings++;
if (RandomStart > 0 && hasSpecialColumn(HitObject.Samples)) if (RandomStart > 0 && hasSpecialColumn)
siblings++; siblings++;
int columnLimit = (AvailableColumns % 2 == 0 ? AvailableColumns : AvailableColumns - 1) / 2; int columnLimit = (AvailableColumns % 2 == 0 ? AvailableColumns : AvailableColumns - 1) / 2;
@ -306,7 +306,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns.Legacy
if (addToCentre) if (addToCentre)
addToPattern(pattern, AvailableColumns / 2, siblings); addToPattern(pattern, AvailableColumns / 2, siblings);
if (RandomStart > 0 && hasSpecialColumn(HitObject.Samples)) if (RandomStart > 0 && hasSpecialColumn)
addToPattern(pattern, 0, siblings); addToPattern(pattern, 0, siblings);
return pattern; return pattern;