diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-09-29 01:30:48 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-09-29 01:30:48 +0200 |
commit | 7646ceeaaaaf86c4be548d531e59cf81f5220e21 (patch) | |
tree | a5daa0fa61395b04de2d4fa28d9fc42f6dd560b4 /src/vehicles/Automobile.cpp | |
parent | Restore All Cars are Heli cheat (diff) | |
parent | Merge pull request #717 from theR4K/miami (diff) | |
download | re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar.gz re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar.bz2 re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar.lz re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar.xz re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.tar.zst re3-7646ceeaaaaf86c4be548d531e59cf81f5220e21.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 5c5cf6b4..05596e75 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -1384,7 +1384,10 @@ CAutomobile::ProcessControl(void) playRotorSound = true; } }else if((GetModelIndex() == MI_DODO || CVehicle::bAllDodosCheat) && - m_vecMoveSpeed.Magnitude() > 0.0f && CTimer::GetTimeStep() > 0.0f){ +#ifdef FIX_BUGS + !IsRealHeli() && +#endif + m_vecMoveSpeed.Magnitude() > 0.0f && CTimer::GetTimeStep() > 0.0f){ #ifdef ALT_DODO_CHEAT if (bAltDodoCheat) FlyingControl(FLIGHT_MODEL_PLANE); @@ -1493,7 +1496,7 @@ CAutomobile::ProcessControl(void) CMatrix mat; mat.Attach(RwFrameGetMatrix(m_aCarNodes[CAR_BONNET])); CVector blade = mat.GetRight(); - blade = GetMatrix() * blade; + blade = Multiply3x3(blade, GetMatrix()); camDist /= Max(Sqrt(distSq), 0.01f); if(Abs(DotProduct(camDist, blade)) > 0.95f){ DMAudio.PlayOneShot(m_audioEntityId, SOUND_31, 0.0f); |