1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Fix variable clash

This commit is contained in:
Dean Herbert 2023-10-06 21:01:23 +09:00
parent 7227f5c881
commit 8e5b2e78e5
No known key found for this signature in database

View File

@ -117,17 +117,17 @@ namespace osu.Game.Screens.OnlinePlay
private void updateModDisplay() 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.Text = "all";
count.FadeColour(colours.Gray2, 200, Easing.OutQuint); count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
circle.FadeColour(colours.Yellow, 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); count.FadeColour(colours.Gray2, 200, Easing.OutQuint);
circle.FadeColour(colours.YellowDark, 200, Easing.OutQuint); circle.FadeColour(colours.YellowDark, 200, Easing.OutQuint);
} }