mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Remove loop in combo score loss estimation calculation
This commit is contained in:
parent
ea7078fab5
commit
c4ac53002c
@ -519,13 +519,13 @@ namespace osu.Game.Database
|
||||
|
||||
if (assumedLengthOfRemainingCombos > 0)
|
||||
{
|
||||
while (remainingCombo > 0)
|
||||
{
|
||||
int comboLength = Math.Min(assumedLengthOfRemainingCombos, remainingCombo);
|
||||
int assumedCombosCount = (int)Math.Floor((double)remainingCombo / assumedLengthOfRemainingCombos);
|
||||
totalDroppedScore += assumedCombosCount * estimateDroppedComboScoreAfterMiss(assumedLengthOfRemainingCombos);
|
||||
|
||||
remainingCombo -= comboLength;
|
||||
totalDroppedScore += estimateDroppedComboScoreAfterMiss(comboLength);
|
||||
}
|
||||
remainingCombo -= assumedCombosCount * assumedLengthOfRemainingCombos;
|
||||
|
||||
if (remainingCombo > 0)
|
||||
totalDroppedScore += estimateDroppedComboScoreAfterMiss(remainingCombo);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user