summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-02-05 09:31:54 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-02-05 09:31:54 +0100
commit09de511c37c32e13af3f72ded7f0f9e19f395ae2 (patch)
tree10b57c28929fd978cc2314e9066106ea930457d6 /src/control
parentfix MASTER crashes (diff)
downloadre3-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')
-rw-r--r--src/control/CarCtrl.cpp2
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);