mirror of https://github.com/ppy/osu
Be doubly careful
This commit is contained in:
parent
ce818f59e7
commit
2ea2e5f1db
|
@ -70,9 +70,12 @@ public sealed override void Process(DifficultyHitObject current)
|
|||
/// </summary>
|
||||
public virtual double CountTopWeightedStrains()
|
||||
{
|
||||
if (ObjectStrains.Count == 0)
|
||||
return 0.0;
|
||||
|
||||
double consistentTopStrain = DifficultyValue() / 10; // What would the top strain be if all strain values were identical
|
||||
|
||||
if (ObjectStrains.Count == 0 || consistentTopStrain == 0)
|
||||
if (consistentTopStrain == 0)
|
||||
return 0.0;
|
||||
|
||||
// Use a weighted sum of all strains. Constants are arbitrary and give nice values
|
||||
|
|
Loading…
Reference in New Issue