mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-28 06:43:01 +05:00
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:
parent
d5dc4f18a6
commit
bc75ee4585
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue