Skip to content

Commit

Permalink
Fix for #118
Browse files Browse the repository at this point in the history
Fix for lights showing through geometry.
  • Loading branch information
nukeulater authored Aug 19, 2018
1 parent b66a86f commit 62e8d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xlive/H2MOD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 62e8d80

Please sign in to comment.