Fixed an inverted condition in CCarCtrl::PickNextNodeRandomly

leading to cars being unable to turn right from one way roads

Contributed by Nick007J

Fixes #1
This commit is contained in:
Silent 2024-03-07 22:47:52 +01:00
parent 9f94595ee4
commit 50c6a9bda3
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -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<uint8_t>(pickNodeRandomly, 0x75);
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)