mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 23:50:29 +01:00
Fixed condition for toggling End Path menu item
This commit is contained in:
parent
25fbd0a8ec
commit
fd4a46587d
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ namespace SceneManager
|
||||||
|
|
||||||
private static void ToggleTrafficEndPathMenuItem(int pathIndex)
|
private static void ToggleTrafficEndPathMenuItem(int pathIndex)
|
||||||
{
|
{
|
||||||
if ((PathMainMenu.GetPaths()[pathIndex].Waypoints.Count == 1 && PathMainMenu.GetPaths()[pathIndex].Waypoints.First().DrivingFlag == VehicleDrivingFlags.StopAtDestination) || (PathMainMenu.GetPaths()[pathIndex].Waypoints.Count > 1 && PathMainMenu.GetPaths()[pathIndex].Waypoints.Any(p => p.DrivingFlag != VehicleDrivingFlags.StopAtDestination)))
|
if ((PathMainMenu.GetPaths()[pathIndex].Waypoints.Count == 1 && PathMainMenu.GetPaths()[pathIndex].Waypoints.First().DrivingFlag == VehicleDrivingFlags.StopAtDestination) || (PathMainMenu.GetPaths()[pathIndex].Waypoints.Count > 1))
|
||||||
{
|
{
|
||||||
trafficEndPath.Enabled = true;
|
trafficEndPath.Enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue