diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-10-16 23:27:28 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-10-16 23:27:28 +0200 |
commit | 894a1ae93aa7ec14e9d83ba43caa75adc500d582 (patch) | |
tree | 6de5d6306fdd96d5936d840fc20729cb70dfd37a /src/audio/PoliceRadio.cpp | |
parent | sirenes and more marks for audio. also fix cAudioMrg size (diff) | |
download | re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar.gz re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar.bz2 re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar.lz re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar.xz re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.tar.zst re3-894a1ae93aa7ec14e9d83ba43caa75adc500d582.zip |
Diffstat (limited to 'src/audio/PoliceRadio.cpp')
-rw-r--r-- | src/audio/PoliceRadio.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp index bd29ad4b..15dafab1 100644 --- a/src/audio/PoliceRadio.cpp +++ b/src/audio/PoliceRadio.cpp @@ -671,7 +671,6 @@ cAudioManager::PlaySuspectLastSeen(float x, float y, float z) float halfY; float quarterX; float quarterY; - int32 sample; bool processed = false; CVector vec = CVector(x, y, z); @@ -683,8 +682,7 @@ cAudioManager::PlaySuspectLastSeen(float x, float y, float z) zone = CTheZones::GetAudioZone(audioZone); for (int i = 0; i < NUMAUDIOZONES; i++) { if (strcmp(zone->name, ZoneSfx[i].m_aName) == 0) { - sample = ZoneSfx[i].m_nSampleIndex; - m_sPoliceRadioQueue.Add(m_anRandomTable[4] % 3 + SFX_POLICE_RADIO_MESSAGE_NOISE_1); + m_sPoliceRadioQueue.Add(SFX_POLICE_RADIO_MESSAGE_NOISE_1); m_sPoliceRadioQueue.Add(SFX_POLICE_RADIO_SUSPECT); m_sPoliceRadioQueue.Add(SFX_POLICE_RADIO_LAST_SEEN); m_sPoliceRadioQueue.Add(SFX_IN); @@ -709,9 +707,10 @@ cAudioManager::PlaySuspectLastSeen(float x, float y, float z) m_sPoliceRadioQueue.Add(SFX_WEST); else if (!processed) m_sPoliceRadioQueue.Add(SFX_CENTRAL); - m_sPoliceRadioQueue.Add(sample); - m_sPoliceRadioQueue.Add(m_anRandomTable[2] % 3 + SFX_POLICE_RADIO_MESSAGE_NOISE_1); - m_sPoliceRadioQueue.Add(TOTAL_AUDIO_SAMPLES); + + m_sPoliceRadioQueue.Add(ZoneSfx[i].m_nSampleIndex); + m_sPoliceRadioQueue.Add(SFX_POLICE_RADIO_MESSAGE_NOISE_1); + m_sPoliceRadioQueue.Add(NO_SAMPLE); gSpecialSuspectLastSeenReport = true; break; } |