mirror of
https://github.com/ppy/osu.git
synced 2025-01-21 11:22:55 +08:00
Fix equals operator not working
This commit is contained in:
parent
7683f7ff23
commit
e075dd7ea8
@ -241,6 +241,8 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private void updateCriteriaRange(ref FilterCriteria.OptionalRange<float> range, string op, float value, float tolerance = 0.05f)
|
private void updateCriteriaRange(ref FilterCriteria.OptionalRange<float> range, string op, float value, float tolerance = 0.05f)
|
||||||
{
|
{
|
||||||
|
updateCriteriaRange(ref range, op, value);
|
||||||
|
|
||||||
switch (op)
|
switch (op)
|
||||||
{
|
{
|
||||||
case "=":
|
case "=":
|
||||||
@ -249,12 +251,12 @@ namespace osu.Game.Screens.Select
|
|||||||
range.Max = value + tolerance;
|
range.Max = value + tolerance;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCriteriaRange(ref range, op, value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCriteriaRange(ref FilterCriteria.OptionalRange<double> range, string op, double value, double tolerance = 0.05f)
|
private void updateCriteriaRange(ref FilterCriteria.OptionalRange<double> range, string op, double value, double tolerance = 0.05)
|
||||||
{
|
{
|
||||||
|
updateCriteriaRange(ref range, op, value);
|
||||||
|
|
||||||
switch (op)
|
switch (op)
|
||||||
{
|
{
|
||||||
case "=":
|
case "=":
|
||||||
@ -263,8 +265,6 @@ namespace osu.Game.Screens.Select
|
|||||||
range.Max = value + tolerance;
|
range.Max = value + tolerance;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCriteriaRange(ref range, op, value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCriteriaRange<T>(ref FilterCriteria.OptionalRange<T> range, string op, T value)
|
private void updateCriteriaRange<T>(ref FilterCriteria.OptionalRange<T> range, string op, T value)
|
||||||
@ -278,6 +278,8 @@ namespace osu.Game.Screens.Select
|
|||||||
case "=":
|
case "=":
|
||||||
case ":":
|
case ":":
|
||||||
range.IsInclusive = true;
|
range.IsInclusive = true;
|
||||||
|
range.Min = value;
|
||||||
|
range.Max = value;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ">":
|
case ">":
|
||||||
|
Loading…
Reference in New Issue
Block a user