mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Cleanup
This commit is contained in:
parent
08af3e6303
commit
eaa2a007e7
@ -39,12 +39,12 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
var bindableDouble = CurrentNumber as BindableNumber<double>;
|
||||
var bindableFloat = CurrentNumber as BindableNumber<float>;
|
||||
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value ?? null;
|
||||
var floatValue = bindableDouble?.Value ?? bindableFloat?.Value;
|
||||
|
||||
if (floatValue != null)
|
||||
{
|
||||
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat?.MinValue ?? null;
|
||||
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat?.MaxValue ?? null;
|
||||
var floatMinValue = bindableDouble?.MinValue ?? bindableFloat.MinValue;
|
||||
var floatMaxValue = bindableDouble?.MaxValue ?? bindableFloat.MaxValue;
|
||||
|
||||
if (floatMaxValue == 1 && (floatMinValue == 0 || floatMinValue == -1))
|
||||
return floatValue.Value.ToString(@"P0");
|
||||
|
Loading…
Reference in New Issue
Block a user