CScriptRoomAcoustics: Brace conditionals where applicable

This commit is contained in:
Lioncash 2020-05-07 12:28:45 -04:00
parent e691628289
commit 2bf190048d
1 changed files with 10 additions and 7 deletions

View File

@ -36,23 +36,26 @@ void CScriptRoomAcoustics::DisableAuxCallbacks() {
} }
void CScriptRoomAcoustics::EnableAuxCallbacks() { void CScriptRoomAcoustics::EnableAuxCallbacks() {
if (!x30_24_active) if (!x30_24_active) {
return; return;
}
bool applied = true; bool applied = true;
if (x38_revHi) if (x38_revHi) {
CSfxManager::PrepareReverbHiCallback(x3c_revHiInfo); CSfxManager::PrepareReverbHiCallback(x3c_revHiInfo);
else if (x54_chorus) } else if (x54_chorus) {
CSfxManager::PrepareChorusCallback(x58_chorusInfo); CSfxManager::PrepareChorusCallback(x58_chorusInfo);
else if (x64_revStd) } else if (x64_revStd) {
CSfxManager::PrepareReverbStdCallback(x68_revStdInfo); CSfxManager::PrepareReverbStdCallback(x68_revStdInfo);
else if (x7c_delay) } else if (x7c_delay) {
CSfxManager::PrepareDelayCallback(x80_delayInfo); CSfxManager::PrepareDelayCallback(x80_delayInfo);
else } else {
applied = false; applied = false;
}
if (applied) if (applied) {
CAudioSys::SetVolumeScale(x34_volumeScale); CAudioSys::SetVolumeScale(x34_volumeScale);
}
s_ActiveAcousticsAreaId = x4_areaId; s_ActiveAcousticsAreaId = x4_areaId;
} }