Beagle moving aileron

This commit is contained in:
Silent 2017-09-10 00:16:16 +02:00
parent 539398dd68
commit 14a31c21e8
2 changed files with 10 additions and 12 deletions

View file

@ -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()

View file

@ -218,9 +218,6 @@ public:
void Fix_SilentPatch();
static void (CPlane::*orgPlanePreRender)();
private:
void ProcessStuntPlane();
};
class NOVMT CBoat : public CVehicle