Apply suggestion concerning the BeatmapSetType enum

This commit is contained in:
EVAST9919
2017-11-06 21:46:28 +03:00
parent ebaef86432
commit b8b5c67cd2
3 changed files with 19 additions and 7 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Overlays.BeatmapSet
int passCount = beatmap.OnlineInfo.PassCount;
int playCount = beatmap.OnlineInfo.PlayCount;
var rate = (playCount != 0) ? (float)passCount / playCount : 0;
var rate = playCount != 0 ? (float)passCount / playCount : 0;
successPercent.Text = rate.ToString("P0");
successRate.Length = rate;
percentContainer.ResizeWidthTo(successRate.Length, 250, Easing.InOutCubic);