1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 00:47:24 +08:00

General fixes.

This commit is contained in:
smoogipooo 2017-05-18 13:37:22 +09:00
parent c1a44ea6b4
commit 7c48fb2b92

View File

@ -126,7 +126,6 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
var newObjects = new ObjectList();
int usableColumns = AvailableColumns - RandomStart - PreviousObjects.ColumnsFilled;
int nextColumn = Random.Next(RandomStart, AvailableColumns);
for (int i = 0; i < Math.Min(usableColumns, noteCount); i++)
{
@ -325,7 +324,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
canGenerateTwoNotes &= originalObject.Samples.Any(isDoubleSample) || sampleInfoListAt(originalObject.StartTime).Any(isDoubleSample);
if (canGenerateTwoNotes)
p2 = 0;
p2 = 1;
return generateRandomHoldNotes(startTime, endTime, GetRandomNoteCount(p2, p3, p4));
}
@ -397,7 +396,7 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
// Create the hold note
add(newObjects, holdColumn, startTime, separationTime * repeatCount);
int noteCount = 0;
int noteCount = 1;
if (conversionDifficulty > 6.5)
noteCount = GetRandomNoteCount(0.63, 0);
else if (conversionDifficulty > 4)
@ -422,10 +421,9 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
}
}
foreach (ManiaHitObject obj in tempObjects.HitObjects)
newObjects.Add(obj);
newObjects.Add(tempObjects);
tempObjects.Clear();
startTime += separationTime;
}