mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +08:00
Fix variable clash
This commit is contained in:
parent
7227f5c881
commit
8e5b2e78e5
@ -117,17 +117,17 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
|
||||
private void updateModDisplay()
|
||||
{
|
||||
int current = Current.Value.Count;
|
||||
int currentCount = Current.Value.Count;
|
||||
|
||||
if (current == allAvailableAndValidMods.Count())
|
||||
if (currentCount == allAvailableAndValidMods.Count())
|
||||
{
|
||||
count.Text = "all";
|
||||
count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
|
||||
circle.FadeColour(colours.Yellow, 200, Easing.OutQuint);
|
||||
}
|
||||
else if (current > 0)
|
||||
else if (currentCount > 0)
|
||||
{
|
||||
count.Text = $"{current} mods";
|
||||
count.Text = $"{currentCount} mods";
|
||||
count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
|
||||
circle.FadeColour(colours.YellowDark, 200, Easing.OutQuint);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user