Use better initial value for closestEndTime

This commit is contained in:
63411 2022-04-22 12:59:00 +08:00
parent 574007c07a
commit 97b4a2a105
1 changed files with 1 additions and 1 deletions

View File

@ -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