summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-03-21 14:51:30 +0100
committerFilip Gawin <filip.gawin@zoho.com>2020-03-22 17:30:54 +0100
commit39462a3865a39a68ebd69b2794ed9143938f8afd (patch)
tree0632f3421d3d23e58318234b15d8c85174cfc0a1 /src
parentFixes for review (diff)
downloadre3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar.gz
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar.bz2
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar.lz
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar.xz
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.tar.zst
re3-39462a3865a39a68ebd69b2794ed9143938f8afd.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/AudioManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index e40b6cf0..89cdd8b6 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -7255,8 +7255,8 @@ cAudioManager::ProcessVehicleHorn(cVehicleParams *params)
if(automobile->m_nCarHornTimer == 44)
automobile->field_22D =
(uint8(m_FrameCounter) + uint8(m_sQueueSample.m_nEntityIndex)) & 7;
+ if (!hornPatternsArray[automobile->field_22D][44 - automobile->m_nCarHornTimer]) return;
}
- if(!hornPatternsArray[automobile->field_22D][44 - automobile->m_nCarHornTimer]) return;
CalculateDistance(params->m_bDistanceCalculated, params->m_fDistance);
m_sQueueSample.m_bVolume = ComputeVolume(80, 40.f, m_sQueueSample.m_fDistance);