mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
.NET Standard 2.1 implements Math.Clamp , use it instead of MathHelper.Clamp from osuTK.
This commit is contained in:
@ -256,7 +256,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
Color4 colour = State == ColumnState.Lit ? LitColour : DimmedColour;
|
||||
|
||||
int countFilled = (int)MathHelper.Clamp(filled * drawableRows.Count, 0, drawableRows.Count);
|
||||
int countFilled = (int)Math.Clamp(filled * drawableRows.Count, 0, drawableRows.Count);
|
||||
|
||||
for (int i = 0; i < drawableRows.Count; i++)
|
||||
drawableRows[i].Colour = i < countFilled ? colour : EmptyColour;
|
||||
|
Reference in New Issue
Block a user