From bc8aa9919691afbc107e5d2d554329ddf3195866 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 1 May 2020 22:53:44 +0200 Subject: [PATCH] Rewrote directional multiplier fix --- SilentPatchSA/SilentPatchSA.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 434d93c..d234cf0 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -3736,13 +3736,11 @@ void Patch_SA_10() // Bilinear filtering with mipmaps for weapon icons Patch(0x58D7DA, rwFILTERMIPLINEAR); - // Illumination value from timecyc.dat properly using floats + // Directional multiplier value from timecyc.dat properly using floats Patch(0x5BBFC9, 0x14EB); - // Illumination defaults to 1.0 - Patch(0x5BBB04, 0xCC2484C7); - Patch(0x5BBB08, 0x00000000); - Patch(0x5BBB0C, 0x903F8000); + // Directional multiplier defaults to 1.0f + Patch( 0x5BBB04, { 0xC7, 0x84, 0x24, 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F, 0x90 } ); // All lights get casted at vehicles Patch(0x5D9A88, 8);