From 50c6a9bda3eac2dfe7923b7bd5957dc7850ced85 Mon Sep 17 00:00:00 2001 From: Silent Date: Thu, 7 Mar 2024 22:47:52 +0100 Subject: [PATCH] Fixed an inverted condition in CCarCtrl::PickNextNodeRandomly leading to cars being unable to turn right from one way roads Contributed by Nick007J Fixes #1 --- SilentPatchIII/SilentPatchIII.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 8ff438d..33ae8d2 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -1301,6 +1301,16 @@ void Patch_III_Common() Nop(processCommands4, 3); Nop(pedSetOutCar, 3); } + + + // Fixed an inverted condition in CCarCtrl::PickNextNodeRandomly + // leading to cars being unable to turn right from one way roads + // By Nick007J + { + auto pickNodeRandomly = get_pattern("3B 44 24 24 74 09", 4); + + Patch(pickNodeRandomly, 0x75); + } } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)