summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-09-29 00:48:11 +0200
committerGitHub <noreply@github.com>2020-09-29 00:48:11 +0200
commite2314c7852c47d93ae1ba36398cecff12d73568a (patch)
tree00ec667839570abc5be30eba825e56e89bc6f31f /src/vehicles/Automobile.cpp
parentMerge pull request #721 from theR4K/miamiUpstream (diff)
parentTEMPORALY remove flying cars (diff)
downloadre3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar.gz
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar.bz2
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar.lz
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar.xz
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.tar.zst
re3-e2314c7852c47d93ae1ba36398cecff12d73568a.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 7863b4a1..171ee9ba 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -1489,7 +1489,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);