1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 02:02:53 +08:00

Not animate stars over MaxStars

This commit is contained in:
Adonais Romero González 2016-10-09 14:09:07 -05:00
parent 707effb591
commit 841707b61f
2 changed files with 4 additions and 1 deletions

View File

@ -141,7 +141,7 @@ namespace osu.Desktop.Tests
AddButton(@"Alter stars", delegate AddButton(@"Alter stars", delegate
{ {
tc.Count = RNG.NextSingle() * tc.MaxStars; tc.Count = RNG.NextSingle() * (tc.MaxStars + 1);
text.Text = tc.Count.ToString("0.00"); text.Text = tc.Count.ToString("0.00");
}); });

View File

@ -126,6 +126,9 @@ namespace osu.Game.Graphics.UserInterface
protected void transformStar(int i, bool isIncrement) protected void transformStar(int i, bool isIncrement)
{ {
if (i >= MaxStars)
return;
if (Clock == null) if (Clock == null)
return; return;