fix roundabout turnAngle for leftside

This commit is contained in:
sonora 2016-10-26 19:39:28 +02:00
parent be544a85e8
commit 8a83ec4574

View file

@ -292,7 +292,7 @@ public class TurnPathHelper {
int out = turnType.getExitOut();
boolean leftSide = turnType.isLeftSide();
boolean showSteps = SHOW_STEPS && !mini;
TurnVariables tv = new TurnVariables(leftSide, turnType.getTurnAngle(), out, wa, ha, 1);
TurnVariables tv = new TurnVariables(leftSide, leftSide ? -turnType.getTurnAngle() : turnType.getTurnAngle(), out, wa, ha, 1);
if(center != null) {
center.set(tv.cx, tv.cy);
}