summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-16 15:55:37 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-16 15:55:37 +0200
commitdc5ece83278aca64c33f344be9d94e055c5c8fb7 (patch)
tree3a42207e7b41894e3ab613b68390ca4a9484ee93 /src
parentfixes for 64 bit build (diff)
downloadre3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar.gz
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar.bz2
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar.lz
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar.xz
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.tar.zst
re3-dc5ece83278aca64c33f344be9d94e055c5c8fb7.zip
Diffstat (limited to 'src')
-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 8ef439d9..ec46aa53 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -7368,7 +7368,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);
@@ -7391,7 +7391,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);