Rewrote directional multiplier fix

This commit is contained in:
Silent 2020-05-01 22:53:44 +02:00
parent e5fdb350e3
commit bc8aa99196
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -3736,13 +3736,11 @@ void Patch_SA_10()
// Bilinear filtering with mipmaps for weapon icons // Bilinear filtering with mipmaps for weapon icons
Patch<BYTE>(0x58D7DA, rwFILTERMIPLINEAR); Patch<BYTE>(0x58D7DA, rwFILTERMIPLINEAR);
// Illumination value from timecyc.dat properly using floats // Directional multiplier value from timecyc.dat properly using floats
Patch<WORD>(0x5BBFC9, 0x14EB); Patch<WORD>(0x5BBFC9, 0x14EB);
// Illumination defaults to 1.0 // Directional multiplier defaults to 1.0f
Patch<DWORD>(0x5BBB04, 0xCC2484C7); Patch( 0x5BBB04, { 0xC7, 0x84, 0x24, 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x3F, 0x90 } );
Patch<DWORD>(0x5BBB08, 0x00000000);
Patch<DWORD>(0x5BBB0C, 0x903F8000);
// All lights get casted at vehicles // All lights get casted at vehicles
Patch<BYTE>(0x5D9A88, 8); Patch<BYTE>(0x5D9A88, 8);