1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-23 18:30:00 +00:00

cleanup AudioManager

This commit is contained in:
Filip Gawin 2019-07-05 20:38:06 +02:00
parent 53023eb65b
commit 9062f958a4

View file

@ -313,13 +313,9 @@ cAudioManager::ResetPoliceRadio()
void void
cAudioManager::InterrogateAudioEntities() cAudioManager::InterrogateAudioEntities()
{ {
int32 i = 0; for(uint32 i = 0; i < m_nAudioEntitiesTotal; i++) {
int32 next;
while(i < m_nAudioEntitiesTotal) {
ProcessEntity(m_anAudioEntityIndices[i]); ProcessEntity(m_anAudioEntityIndices[i]);
next = m_anAudioEntityIndices[i++]; m_asAudioEntities[m_anAudioEntityIndices[i]].field_24 = 0;
m_asAudioEntities[next].field_24 = 0;
} }
} }
@ -436,7 +432,7 @@ cAudioManager::RandomDisplacement(uint32 seed)
int32 value; int32 value;
static bool bIsEven = true; static bool bIsEven = true;
static uint8 base = 0; static uint32 base = 0;
if(!seed) return 0; if(!seed) return 0;