From eebd857f41585eac2eb7403e22e74535c30d9e62 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Mon, 22 Jun 2026 21:14:25 -0500 Subject: [PATCH] Apply traffic weights to driving queries --- red4ext/EdgeWeightGPS/src/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red4ext/EdgeWeightGPS/src/Main.cpp b/red4ext/EdgeWeightGPS/src/Main.cpp index d8ac54b..41854ac 100644 --- a/red4ext/EdgeWeightGPS/src/Main.cpp +++ b/red4ext/EdgeWeightGPS/src/Main.cpp @@ -3840,7 +3840,7 @@ float DetourGpsTrafficEdgeScore(void* aSearchContext, void* aCandidate, void* aR TryReadMemory(reinterpret_cast(reinterpret_cast(lane) + 0x88), laneFlags); } - const auto driving = queryMode == 0; + const auto driving = queryMode != 0 && queryMode != 0xFF; const auto multiplier = TrafficEdgeScoreMultiplier(laneFlags, driving); const auto patchedScore = baseScore * multiplier;