move params forward

This commit is contained in:
afischerdev 2021-07-24 11:45:56 +02:00
parent f8e600e43d
commit 4bbd2d7bff

View file

@ -123,6 +123,15 @@ public final class RoutingContext
{
BExpressionContext expctxGlobal = expctxWay; // just one of them...
if (keyValues != null) {
// add parameter to context
for (Map.Entry<String, String> e : keyValues.entrySet()) {
float f = Float.parseFloat(e.getValue());
expctxWay.setVariableValue(e.getKey(), f, false );
expctxNode.setVariableValue(e.getKey(), f, false );
}
}
setModel( expctxGlobal._modelClass );
downhillcostdiv = (int)expctxGlobal.getVariableValue( "downhillcost", 0.f );