From 14a31c21e80f6a037fc48aa7fc1f0443587b08b4 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 10 Sep 2017 00:16:16 +0200 Subject: [PATCH] Beagle moving aileron --- SilentPatchSA/VehicleSA.cpp | 19 ++++++++++--------- SilentPatchSA/VehicleSA.h | 3 --- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/SilentPatchSA/VehicleSA.cpp b/SilentPatchSA/VehicleSA.cpp index 7f480a6..6f7082e 100644 --- a/SilentPatchSA/VehicleSA.cpp +++ b/SilentPatchSA/VehicleSA.cpp @@ -291,14 +291,7 @@ void CPlane::PreRender() (this->*(orgPlanePreRender))(); const int32_t extID = m_nModelIndex.Get(); - if ( extID == 513 ) - { - ProcessStuntPlane(); - } -} -void CPlane::ProcessStuntPlane() -{ auto copyRotation = [&]( size_t src, size_t dest ) { if ( m_pCarNode[src] != nullptr && m_pCarNode[dest] != nullptr ) { @@ -312,8 +305,16 @@ void CPlane::ProcessStuntPlane() } }; - copyRotation( 19, 23 ); - copyRotation( 20, 24 ); + if ( extID == 511 ) + { + copyRotation( 18, 21 ); + } + + if ( extID == 513 ) + { + copyRotation( 19, 23 ); + copyRotation( 20, 24 ); + } } void CBoat::PreRender_SilentPatch() diff --git a/SilentPatchSA/VehicleSA.h b/SilentPatchSA/VehicleSA.h index 62cc61a..a314c13 100644 --- a/SilentPatchSA/VehicleSA.h +++ b/SilentPatchSA/VehicleSA.h @@ -218,9 +218,6 @@ public: void Fix_SilentPatch(); static void (CPlane::*orgPlanePreRender)(); - -private: - void ProcessStuntPlane(); }; class NOVMT CBoat : public CVehicle