Permalink
Browse files

remove redundancy

  • Loading branch information...
1 parent 53b1c65 commit 91cbd61fdc5361c50ab53c7e170a7bf1a00597b7 novalis committed Sep 12, 2012
@@ -288,7 +288,7 @@ private State doTraverse(State s0, RoutingRequest options, TraverseMode traverse
if (turnCost > 180) {
turnCost = 360 - turnCost;
}
- final double realTurnCost = (turnCost / 20.0) / options.getSpeed(traverseMode);
+ final double realTurnCost = (turnCost / 20.0) / speed;
s1.incrementWalkDistance(realTurnCost / 100); //just a tie-breaker
weight += realTurnCost;
long turnTime = (long) realTurnCost;

0 comments on commit 91cbd61

Please sign in to comment.