summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-25 19:22:43 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-25 19:22:43 +0100
commit2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24 (patch)
tree2195bab87fc3058296a09c0cf35e3c37127b7525 /src/audio/AudioLogic.cpp
parentUse intensity in ProcessBoatEngine (diff)
downloadre3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar.gz
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar.bz2
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar.lz
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar.xz
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.tar.zst
re3-2b96be0418ba60fd2a17d3e03b2cb8b1c906ed24.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 78174f33..94ca67de 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -579,14 +579,13 @@ cAudioManager::ProcessVehicle(CVehicle *veh)
m_sQueueSample.m_vecPos = veh->GetPosition();
params.m_bDistanceCalculated = false;
- params.m_fDistance = GetDistanceSquared(m_sQueueSample.m_vecPos);
params.m_pVehicle = veh;
- params.m_pTransmission = nil;
- params.m_nIndex = 0;
- params.m_fVelocityChange = 0.0f;
+ params.m_fDistance = GetDistanceSquared(m_sQueueSample.m_vecPos);
if (handling != nil)
params.m_pTransmission = &handling->Transmission;
+ else
+ params.m_pTransmission = nil;
params.m_nIndex = veh->GetModelIndex() - MI_FIRST_VEHICLE;
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)