From 62e8d80f2b4057c5bfd6c40fddb9b0964be7f114 Mon Sep 17 00:00:00 2001 From: NukeULater Date: Sun, 19 Aug 2018 20:04:59 +0300 Subject: [PATCH] Fix for #118 Fix for lights showing through geometry. --- xlive/H2MOD.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xlive/H2MOD.cpp b/xlive/H2MOD.cpp index b70013b06..015271655 100644 --- a/xlive/H2MOD.cpp +++ b/xlive/H2MOD.cpp @@ -1300,6 +1300,11 @@ void H2MOD::ApplyHooks() { PatchCall(Base + 0x00182d6d, GrenadeChainReactIsEngineMPCheck); PatchCall(Base + 0x00092C05, BansheeBombIsEngineMPCheck); PatchCall(Base + 0x0013ff75, FlashlightIsEngineSPCheck); + + // Fixes issue #118 + /* g_depth_value always NULL rather than taking any value from + shader tag before calling g_D3DDevice->SetRenderStatus(D3DRS_DEPTHBIAS, g_depth_value); */ + NopFill(GetBase() + 0x269FD5, 0x8); } else {