From bc75ee4585a9f96ec14342db6615a44c85822fca Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 10 May 2024 19:40:54 +0200 Subject: [PATCH] III: Copy the atomic render CB in CloneAtomicToFrameCB instead of overriding it Fixes detached limbs rendering the normal and LOD atomics together Fixes #24 --- SilentPatchIII/SilentPatchIII.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 0a2961b..9700305 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -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)