From 92fb1798f9014790c5449fe33384ad9fa1f23de9 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 15 Sep 2017 22:01:43 +0200 Subject: [PATCH] Fixed III pattern for pathfinding fix --- SilentPatchIII/SilentPatchIII.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/SilentPatchIII/SilentPatchIII.cpp b/SilentPatchIII/SilentPatchIII.cpp index 8fad7a7..56a808b 100644 --- a/SilentPatchIII/SilentPatchIII.cpp +++ b/SilentPatchIII/SilentPatchIII.cpp @@ -852,11 +852,9 @@ void Patch_III_Common() const uintptr_t funcAddr = (uintptr_t)get_pattern( "8B AC 24 94 00 00 00 8B 85 2C 01 00 00", -0x7 ); // push PickNextNodeToChaseCarZ instead of 0.0f - Patch( funcAddr + 0x14F, { 0xFF, 0x35 } ); - Patch( funcAddr + 0x14F + 2, &PickNextNodeToChaseCarZ ); - Nop( funcAddr + 0x14F + 6, 2 ); - Nop( funcAddr + 0x15F, 4 ); - + Patch( funcAddr + 0x1C9, { 0xFF, 0x35 } ); + Patch( funcAddr + 0x1C9 + 2, &PickNextNodeToChaseCarZ ); + Nop( funcAddr + 0x1C9 + 6, 1 ); // lea eax, [esp+1Ch+var_C] // push eax