diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 14:40:35 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-05 14:40:35 +0300 |
commit | ae0c83fa01b05dc2ee70acb2bd4d0e8a3945630c (patch) | |
tree | 12152b094647544a8b6bac68fe7271f37996afd5 /src/audio | |
parent | 131e8af174a106e2bf98da8ef3ab7ba0bb55e09e (diff) |
CAutoPilot + CCarAI + fixes
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
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; } |