Minimum distance condition no longer uses squared values.
This commit is contained in:
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1008,7 +1008,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1008,7 +1008,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1008,7 +1008,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1026,7 +1026,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
@@ -1015,7 +1015,7 @@ public abstract class DocumentBase
|
|||||||
case "mindistance":
|
case "mindistance":
|
||||||
{
|
{
|
||||||
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
final int distance = Integer.decode(getValue(a.getNodeValue(), null));
|
||||||
cond = joinAnd(cond, new ConditionMinDistance(distance * distance));
|
cond = joinAnd(cond, new ConditionMinDistance(distance));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "race":
|
case "race":
|
||||||
|
Reference in New Issue
Block a user