diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-02-05 09:31:54 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-02-05 09:31:54 +0100 |
commit | 09de511c37c32e13af3f72ded7f0f9e19f395ae2 (patch) | |
tree | 10b57c28929fd978cc2314e9066106ea930457d6 /src/control/CarCtrl.cpp | |
parent | fix MASTER crashes (diff) | |
download | re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar.gz re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar.bz2 re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar.lz re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar.xz re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.tar.zst re3-09de511c37c32e13af3f72ded7f0f9e19f395ae2.zip |
Diffstat (limited to 'src/control/CarCtrl.cpp')
-rw-r--r-- | src/control/CarCtrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index c6d78882..d05d9827 100644 --- a/src/control/CarCtrl.cpp +++ b/src/control/CarCtrl.cpp @@ -2757,7 +2757,7 @@ void CCarCtrl::SteerAIPlaneTowardsTargetCoors(CAutomobile* pPlane) up.Normalise(); CVector forward(Cos(pPlane->m_fOrientation), Sin(pPlane->m_fOrientation), fForwardZ); forward.Normalise(); - CVector right = CrossProduct(forward, up); + CVector right = CrossProduct(up, forward); right.z -= 5.0f * pPlane->m_fPlaneSteer; right.Normalise(); up = CrossProduct(forward, right); |