From 304f7b06a9069e4756d5f4c35044aa49714bb669 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 24 Jul 2024 00:23:06 +0200 Subject: [PATCH] Add PermissiveAccess Checks --- astar/Astar.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astar/Astar.cs b/astar/Astar.cs index a92659a..9e665bb 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -82,6 +82,8 @@ namespace astar byte speed = SpeedHelper.GetSpeed(way, car); if(speed < 1) continue; + if(!way.AccessPermitted()) + continue; if(wayId.Value && way.GetDirection() == (fromStart ? WayDirection.Forwards : WayDirection.Backwards) && car) continue;