diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-26 03:10:00 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-26 03:10:00 +0200 |
commit | a75ddd0d0ca4465f9b10305045b18dbecc76e504 (patch) | |
tree | 8e821a43c8b8a5c396a8ca66ac8909636d681bdc /src/vehicles | |
parent | flat tyre and minimal refractoring (diff) | |
download | re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar.gz re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar.bz2 re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar.lz re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar.xz re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.tar.zst re3-a75ddd0d0ca4465f9b10305045b18dbecc76e504.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index eec44c35..0154ae05 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -1486,7 +1486,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); |