summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-05 13:40:35 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-05 13:40:35 +0200
commitae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c (patch)
tree12152b094647544a8b6bac68fe7271f37996afd5 /src/audio
parentMerge pull request #508 from Nick007J/master (diff)
downloadre3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.gz
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.bz2
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.lz
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.xz
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.tar.zst
re3-ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c.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 523092fd..c30d6ecc 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -8277,8 +8277,8 @@ cAudioManager::ProcessVehicleHorn(cVehicleParams *params)
if (params->m_pVehicle->GetStatus() != STATUS_PLAYER) {
automobile->m_nCarHornTimer = Min(44, automobile->m_nCarHornTimer);
if (automobile->m_nCarHornTimer == 44)
- automobile->field_22D = (m_FrameCounter + m_sQueueSample.m_nEntityIndex) & 7;
- if (!hornPatternsArray[automobile->field_22D][44 - automobile->m_nCarHornTimer])
+ automobile->m_nCarHornPattern = (m_FrameCounter + m_sQueueSample.m_nEntityIndex) & 7;
+ if (!hornPatternsArray[automobile->m_nCarHornPattern][44 - automobile->m_nCarHornTimer])
return;
}