mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Not animate stars over MaxStars
This commit is contained in:
parent
707effb591
commit
841707b61f
@ -141,7 +141,7 @@ namespace osu.Desktop.Tests
|
||||
|
||||
AddButton(@"Alter stars", delegate
|
||||
{
|
||||
tc.Count = RNG.NextSingle() * tc.MaxStars;
|
||||
tc.Count = RNG.NextSingle() * (tc.MaxStars + 1);
|
||||
text.Text = tc.Count.ToString("0.00");
|
||||
});
|
||||
|
||||
|
@ -126,6 +126,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected void transformStar(int i, bool isIncrement)
|
||||
{
|
||||
if (i >= MaxStars)
|
||||
return;
|
||||
|
||||
if (Clock == null)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user