mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 09:32:55 +08:00
Cap bonus score more correctly
This commit is contained in:
parent
0da0855692
commit
3986cec949
@ -48,7 +48,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
/// <summary>
|
||||
/// The amount of bonus score gained from spinning after the required number of spins, for display purposes.
|
||||
/// </summary>
|
||||
public double CurrentBonusScore => score_per_tick * (completedFullSpins.Value - HitObject.SpinsRequiredForBonus);
|
||||
public double CurrentBonusScore => score_per_tick * Math.Clamp(completedFullSpins.Value - HitObject.SpinsRequiredForBonus, 0, HitObject.MaximumBonusSpins);
|
||||
|
||||
/// <summary>
|
||||
/// The maximum amount of bonus score which can be achieved from extra spins.
|
||||
|
Loading…
Reference in New Issue
Block a user