diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-07-05 20:38:06 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-07-07 17:48:32 +0200 |
commit | 9062f958a40b7812438592872372077e2e2136e4 (patch) | |
tree | 33a8d2f188a40410d3bc111a71dfa06e98c6a50a /src | |
parent | the great reorganization (diff) | |
download | re3-9062f958a40b7812438592872372077e2e2136e4.tar re3-9062f958a40b7812438592872372077e2e2136e4.tar.gz re3-9062f958a40b7812438592872372077e2e2136e4.tar.bz2 re3-9062f958a40b7812438592872372077e2e2136e4.tar.lz re3-9062f958a40b7812438592872372077e2e2136e4.tar.xz re3-9062f958a40b7812438592872372077e2e2136e4.tar.zst re3-9062f958a40b7812438592872372077e2e2136e4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioManager.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 76ef8244..a48a3838 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -313,13 +313,9 @@ cAudioManager::ResetPoliceRadio() void cAudioManager::InterrogateAudioEntities() { - int32 i = 0; - int32 next; - - while(i < m_nAudioEntitiesTotal) { + for(uint32 i = 0; i < m_nAudioEntitiesTotal; i++) { ProcessEntity(m_anAudioEntityIndices[i]); - next = m_anAudioEntityIndices[i++]; - m_asAudioEntities[next].field_24 = 0; + m_asAudioEntities[m_anAudioEntityIndices[i]].field_24 = 0; } } @@ -436,7 +432,7 @@ cAudioManager::RandomDisplacement(uint32 seed) int32 value; static bool bIsEven = true; - static uint8 base = 0; + static uint32 base = 0; if(!seed) return 0; |