mirror of https://github.com/ppy/osu
Use better initial value for closestEndTime
This commit is contained in:
parent
574007c07a
commit
97b4a2a105
|
@ -37,7 +37,7 @@ protected override double StrainValueOf(DifficultyHitObject current)
|
|||
var maniaCurrent = (ManiaDifficultyHitObject)current;
|
||||
double endTime = maniaCurrent.EndTime;
|
||||
int column = maniaCurrent.BaseObject.Column;
|
||||
double closestEndTime = 100;
|
||||
double closestEndTime = endTime - maniaCurrent.LastObject.StartTime; // Lowest value we can assume with the current information
|
||||
|
||||
double holdFactor = 1.0; // Factor to all additional strains in case something else is held
|
||||
double holdAddition = 0; // Addition to the current note in case it's a hold and has to be released awkwardly
|
||||
|
|
Loading…
Reference in New Issue