Apply traffic weights to driving queries
This commit is contained in:
@@ -3840,7 +3840,7 @@ float DetourGpsTrafficEdgeScore(void* aSearchContext, void* aCandidate, void* aR
|
|||||||
TryReadMemory(reinterpret_cast<const void*>(reinterpret_cast<uintptr_t>(lane) + 0x88), laneFlags);
|
TryReadMemory(reinterpret_cast<const void*>(reinterpret_cast<uintptr_t>(lane) + 0x88), laneFlags);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto driving = queryMode == 0;
|
const auto driving = queryMode != 0 && queryMode != 0xFF;
|
||||||
const auto multiplier = TrafficEdgeScoreMultiplier(laneFlags, driving);
|
const auto multiplier = TrafficEdgeScoreMultiplier(laneFlags, driving);
|
||||||
const auto patchedScore = baseScore * multiplier;
|
const auto patchedScore = baseScore * multiplier;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user