summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-10 01:45:29 +0200
committerSergeanur <s.anureev@yandex.ua>2021-05-10 01:45:29 +0200
commit4da733145e4eed9350617df026068edb23a979ab (patch)
tree6af909440b375db9478e244aeb8db32c31ad7259 /src/audio
parentUse some GetMatrix/SetMatrix logic based on SA (diff)
downloadre3-4da733145e4eed9350617df026068edb23a979ab.tar
re3-4da733145e4eed9350617df026068edb23a979ab.tar.gz
re3-4da733145e4eed9350617df026068edb23a979ab.tar.bz2
re3-4da733145e4eed9350617df026068edb23a979ab.tar.lz
re3-4da733145e4eed9350617df026068edb23a979ab.tar.xz
re3-4da733145e4eed9350617df026068edb23a979ab.tar.zst
re3-4da733145e4eed9350617df026068edb23a979ab.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioLogic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 7469f579..1a1e97c2 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -3494,7 +3494,7 @@ cAudioManager::ProcessCarHeli(cVehicleParams& params)
brakeState = veh->m_fBrakePedal * 255.0f;
}
freqModifier = Abs(veh->GetUp().y);
- cameraAngle = (DotProduct(veh->m_matrix.GetForward(), TheCamera.GetForward()) + 1.0f) / 2.0f;
+ cameraAngle = (DotProduct(veh->GetMatrix().GetForward(), TheCamera.GetForward()) + 1.0f) / 2.0f;
if (veh->m_modelIndex == MI_SKIMMER) {
boat = (CBoat*)veh;
propellerSpeed = boat->m_fMovingSpeed * 50.0f / 11.0f;