Display stats in kg's as floats

This commit is contained in:
Silent 2020-04-02 18:23:56 +02:00
parent 5154c47ae2
commit e5fdb350e3
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1

View file

@ -4288,6 +4288,11 @@ void Patch_SA_10()
} }
// Display stats in kg's as floats (they pass a float and intend to display an integer)
Patch<const char*>( 0x55A954 + 1, "%.0fkgs" );
Patch<const char*>( 0x5593E4 + 1, "%.0fkgs" );
#if FULL_PRECISION_D3D #if FULL_PRECISION_D3D
// Test - full precision D3D device // Test - full precision D3D device
Patch<uint8_t>( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE ); Patch<uint8_t>( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE );