III: Copy the atomic render CB in CloneAtomicToFrameCB instead of overriding it

Fixes detached limbs rendering the normal and LOD atomics together

Fixes #24
This commit is contained in:
Silent 2024-05-10 19:40:54 +02:00
parent d5dc4f18a6
commit bc75ee4585
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -1676,6 +1676,14 @@ void Patch_III_Common()
InterceptCall(get_position_to_open_car_door, orgGetPositionToOpenCarDoor, GetPositionToOpenCarDoor_CheckSitInBoat);
InterceptCall(blend_animation, orgBlendAnimation, BlendAnimation_SitInBoat);
}
// Copy the atomic render CB in CloneAtomicToFrameCB instead of overriding it
// Fixes detached limbs rendering the normal and LOD atomics together
{
auto set_render_cb = get_pattern("55 E8 ? ? ? ? 89 D8 59", 1);
Nop(set_render_cb, 5);
}
}
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)