Skip to content

Commit

Permalink
Merge branch 'Quaver:master' into optimise-diffcalc-bin
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamQiufeng authored Aug 18, 2024
2 parents 562e412 + d766e81 commit 31f2847
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,10 @@ private void ComputeForPatternFlags()
/// <returns></returns>
private float CalculateOverallDifficulty()
{
// When the map has only scratch key notes, StrainSolverData would be empty, so we return 0
if (StrainSolverData.Count == 0)
return 0;

float calculatedDiff;

// Solve strain value of every data point
Expand Down

0 comments on commit 31f2847

Please # to comment.