some more cleanup and performance squeezing
This commit is contained in:
parent
12d8cae46f
commit
686d693103
9 changed files with 145 additions and 78 deletions
|
|
@ -32,6 +32,8 @@ public final class BExpressionContextWay extends BExpressionContext implements T
|
|||
public float getPriorityClassifier() { return getBuildInVariable(9); }
|
||||
public float getClassifierMask() { return getBuildInVariable(10); }
|
||||
|
||||
public float getInverseCostfactor() { return getInverseBuildInVariable(0); }
|
||||
|
||||
public BExpressionContextWay( BExpressionMetaData meta )
|
||||
{
|
||||
super( "way", meta );
|
||||
|
|
@ -54,8 +56,7 @@ public final class BExpressionContextWay extends BExpressionContext implements T
|
|||
float minCostFactor = getCostfactor();
|
||||
if ( minCostFactor >= 9999.f )
|
||||
{
|
||||
evaluate( true, description );
|
||||
float reverseCostFactor = getCostfactor();
|
||||
float reverseCostFactor = getInverseCostfactor();
|
||||
if ( reverseCostFactor < minCostFactor )
|
||||
{
|
||||
minCostFactor = reverseCostFactor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue