Skip to content

Commit

Permalink
optimise IsAdaptive
Browse files Browse the repository at this point in the history
bumped version
  • Loading branch information
kianzarrin committed Jun 6, 2022
1 parent 6ec5619 commit e8dbfbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HideTMPECrosswalks/HideCrosswalks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Product>HideCrosswalks</Product>
<Copyright>Copyright © 2020</Copyright>
<Deterministic>false</Deterministic>
<AssemblyVersion>3.2.0.*</AssemblyVersion>
<AssemblyVersion>3.2.1.*</AssemblyVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
Expand Down
4 changes: 3 additions & 1 deletion HideTMPECrosswalks/Utils/RoadUtils.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ColossalFramework;
using HideCrosswalks.Lifecycle;
using KianCommons;
using KianCommons.Plugins;
using System;
using System.Collections.Generic;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e8dbfbf

Please sign in to comment.