diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-04-16 04:07:32 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-04-16 04:07:32 +0200 |
commit | c22e59abab331376cdc8557a863eb2584b4bef4b (patch) | |
tree | a0981e25dd92d06888922b449c2d96468763d4c3 /src/audio | |
parent | Fixed bridge despawns (diff) | |
download | re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.gz re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.bz2 re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.lz re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.xz re3-c22e59abab331376cdc8557a863eb2584b4bef4b.tar.zst re3-c22e59abab331376cdc8557a863eb2584b4bef4b.zip |
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 1d2835cf..246b1bda 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -9132,6 +9132,9 @@ cAudioManager::ProcessVehicleSirenOrAlarm(cVehicleParams *params) CVehicle *veh = params->m_pVehicle; if(veh->m_bSirenOrAlarm == 0 && veh->m_nAlarmState <= 0) return; +#ifdef FIX_BUGS + if (params->m_pVehicle->m_status == STATUS_WRECKED) return; +#endif CalculateDistance(params->m_bDistanceCalculated, params->m_fDistance); m_sQueueSample.m_bVolume = ComputeVolume(80, 110.f, m_sQueueSample.m_fDistance); if(m_sQueueSample.m_bVolume) { |