From e5fdb350e307014f4eb6bc380d796a93bc4ff2df Mon Sep 17 00:00:00 2001 From: Silent <zdanio95@gmail.com> Date: Thu, 2 Apr 2020 18:23:56 +0200 Subject: [PATCH] Display stats in kg's as floats --- SilentPatchSA/SilentPatchSA.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 620c283..434d93c 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -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 // Test - full precision D3D device Patch<uint8_t>( 0x7F672B+1, *(uint8_t*)(0x7F672B+1) | D3DCREATE_FPU_PRESERVE );