summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-16 16:09:13 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-16 16:09:13 +0200
commit1a42d62d3ab5ca683defc582a5127a5bc7e454fe (patch)
tree3773a6afe233e6530e58dbcf4b89ebee3bdaf923 /src/audio
parentgangs, script and replay fixes (diff)
parentFix audio use of number instead of enum for CAR_ACCEL (diff)
downloadre3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar.gz
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar.bz2
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar.lz
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar.xz
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.tar.zst
re3-1a42d62d3ab5ca683defc582a5127a5bc7e454fe.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 207d64ad..c30306c8 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -7459,7 +7459,7 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams *params, CAutomobile *
return;
}
if (processedAccelSampleStopped) {
- if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + 345, 0))
+ if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + SFX_CAR_ACCEL_1, 0))
return;
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);
@@ -7482,7 +7482,7 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams *params, CAutomobile *
}
if (CurrentPretendGear < params->m_pTransmission->nNumberOfGears - 1) {
++CurrentPretendGear;
- if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + 345, 0))
+ if (!SampleManager.InitialiseChannel(m_nActiveSamples, soundOffset + SFX_CAR_ACCEL_1, 0))
return;
SampleManager.SetChannelLoopCount(m_nActiveSamples, 1);
SampleManager.SetChannelLoopPoints(m_nActiveSamples, 0, -1);