From af904480475e64bc9a2603e5f1b21e10e2e61ea8 Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 16 Jun 2014 03:23:08 +0200 Subject: [PATCH] I forgot about a reffix 1.1 BETA release --- SilentPatch/dllmain.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/SilentPatch/dllmain.cpp b/SilentPatch/dllmain.cpp index c7f0f67..66e72ad 100644 --- a/SilentPatch/dllmain.cpp +++ b/SilentPatch/dllmain.cpp @@ -187,7 +187,10 @@ void __stdcall Recalculate(float& fX, float& fY, signed int nShadow) static CLinkList& m_alphaList = **(CLinkList**)0x733A4D; static CLinkList& ms_weaponPedsForPC = **(CLinkList**)0x53EACA; -static unsigned char* ZonesVisited = *(unsigned char**)0x57216A - 9; +static unsigned char* ZonesVisited = *(unsigned char**)0x57216A - 9; + +static const float fRefZVal = 1.0f; +static const float* const pRefFal = &fRefZVal; #ifndef SA_STEAM_TEST void** rwengine = *(void***)0x58FFC0; @@ -2098,9 +2101,13 @@ __forceinline void Patch_SA_10() Patch(0x733AD7, EXPAND_BOAT_ALPHA_ATOMIC_LISTS * sizeof(AlphaObjectInfo));*/ // Fixed strafing? Hopefully - static const float fStrafeCheck = 0.1f; + /*static const float fStrafeCheck = 0.1f; Patch(0x61E0C2, &fStrafeCheck); - Nop(0x61E0CA, 6); + Nop(0x61E0CA, 6);*/ + + // RefFix + Patch(0x6FB97A, &pRefFal); + Patch(0x6FB9A0, 0); // Plane rotors InjectHook(0x4C7981, PlaneAtomicRendererSetup, PATCH_JUMP);