III: Don't override the color of the FBI car

FBI cars chasing the player are pure black,
while their carcols specifies dark gray with unpainted bumpers.
Cars spawned for road blocks, import/export,
and resprayed in Pay 'n Spray had this color instead.
This commit is contained in:
Silent 2024-05-13 21:13:53 +02:00
parent e26e1592be
commit b9a61611c3
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -1763,6 +1763,13 @@ void Patch_III_Common()
Nop(match.get<void>(2), 3);
}
}
// Don't override the color of the FBI car
{
auto spawn_one_car = get_pattern("83 7C 24 ? ? 75 0E C6 85", 5);
Patch<uint8_t>(spawn_one_car, 0xEB);
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)