summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 16:14:13 +0200
committerGitHub <noreply@github.com>2020-05-05 16:14:13 +0200
commitdfe0642195bd17704aaac669908c8bb29fbcb531 (patch)
tree99f4d7dec983e7ad6f4071cc259c8c0de2eda2e2 /src/audio/AudioManager.cpp
parentMerge pull request #510 from aap/master (diff)
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar.gz
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar.bz2
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar.lz
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar.xz
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.tar.zst
re3-dfe0642195bd17704aaac669908c8bb29fbcb531.zip
Diffstat (limited to '')
-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 0b98098d..0f4281dc 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;
}