added turn restrictions

This commit is contained in:
Arndt 2016-11-21 08:14:47 +01:00
parent e48cbd49cb
commit 0641a17b9c

View file

@ -902,7 +902,7 @@ public class RoutingEngine extends Thread
sourceNode.unlinkLink ( currentLink );
// if the counterlink is alive and does not yet have a path, remove it
if ( isBidir && currentLink.getFirstLinkHolder( currentNode ) == null )
if ( isBidir && currentLink.getFirstLinkHolder( currentNode ) == null && !routingContext.considerTurnRestrictions )
{
currentNode.unlinkLink(currentLink);
}