motorcar TR exceptions

This commit is contained in:
Arndt Brenschede 2018-03-07 19:35:23 +01:00
parent c9593331bd
commit b783b4568a
2 changed files with 6 additions and 1 deletions

View file

@ -192,7 +192,7 @@ abstract class OsmPath implements OsmLinkHolder
TurnRestriction tr = sourceNode.firstRestriction;
while( tr != null )
{
if ( tr.exceptBikes() && rc.bikeMode )
if ( ( tr.exceptBikes() && rc.bikeMode ) || tr.exceptMotorcars() && rc.carMode )
{
tr = tr.next;
continue;