From e8dbfbfc025b7fb5597f9c2229032d04b5bf1f4a Mon Sep 17 00:00:00 2001 From: kianzzarrin Date: Mon, 6 Jun 2022 20:31:57 +0300 Subject: [PATCH] optimise IsAdaptive bumped version --- HideTMPECrosswalks/HideCrosswalks.csproj | 2 +- HideTMPECrosswalks/KianCommons | 2 +- HideTMPECrosswalks/Utils/RoadUtils.cs | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/HideTMPECrosswalks/HideCrosswalks.csproj b/HideTMPECrosswalks/HideCrosswalks.csproj index 8e13e42..fa3839f 100644 --- a/HideTMPECrosswalks/HideCrosswalks.csproj +++ b/HideTMPECrosswalks/HideCrosswalks.csproj @@ -8,7 +8,7 @@ HideCrosswalks Copyright © 2020 false - 3.2.0.* + 3.2.1.* 512 latest false diff --git a/HideTMPECrosswalks/KianCommons b/HideTMPECrosswalks/KianCommons index b49f663..d51b50b 160000 --- a/HideTMPECrosswalks/KianCommons +++ b/HideTMPECrosswalks/KianCommons @@ -1 +1 @@ -Subproject commit b49f663683804de9d8a9a9349509ee9a26450223 +Subproject commit d51b50b3ba652f3a7838f61d76926a574afacfd6 diff --git a/HideTMPECrosswalks/Utils/RoadUtils.cs b/HideTMPECrosswalks/Utils/RoadUtils.cs index 5ad53f9..340c648 100644 --- a/HideTMPECrosswalks/Utils/RoadUtils.cs +++ b/HideTMPECrosswalks/Utils/RoadUtils.cs @@ -1,6 +1,7 @@ using ColossalFramework; using HideCrosswalks.Lifecycle; using KianCommons; +using KianCommons.Plugins; using System; using System.Collections.Generic; @@ -116,7 +117,8 @@ public static bool IsExempt(NetInfo info) { "Gravel Road", }); - internal static bool CalculateCanHideMarkingsRaw(NetInfo info) => info?.m_netAI is RoadBaseAI; + internal static bool CalculateCanHideMarkingsRaw(NetInfo info) => + info?.m_netAI is RoadBaseAI && !info.GetIsAdaptive(); internal static bool CalculateCanHideCrossingsRaw(NetInfo info) { bool ret = CalculateCanHideMarkingsRaw(info);