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:
parent
707effb591
commit
841707b61f
@ -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");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user