From 2bf190048d6cbc4289842c0ea89cdc32d0c2fa59 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 7 May 2020 12:28:45 -0400 Subject: [PATCH] CScriptRoomAcoustics: Brace conditionals where applicable --- Runtime/World/CScriptRoomAcoustics.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Runtime/World/CScriptRoomAcoustics.cpp b/Runtime/World/CScriptRoomAcoustics.cpp index 3b1672f0c..976268ed8 100644 --- a/Runtime/World/CScriptRoomAcoustics.cpp +++ b/Runtime/World/CScriptRoomAcoustics.cpp @@ -36,23 +36,26 @@ void CScriptRoomAcoustics::DisableAuxCallbacks() { } void CScriptRoomAcoustics::EnableAuxCallbacks() { - if (!x30_24_active) + if (!x30_24_active) { return; + } bool applied = true; - if (x38_revHi) + if (x38_revHi) { CSfxManager::PrepareReverbHiCallback(x3c_revHiInfo); - else if (x54_chorus) + } else if (x54_chorus) { CSfxManager::PrepareChorusCallback(x58_chorusInfo); - else if (x64_revStd) + } else if (x64_revStd) { CSfxManager::PrepareReverbStdCallback(x68_revStdInfo); - else if (x7c_delay) + } else if (x7c_delay) { CSfxManager::PrepareDelayCallback(x80_delayInfo); - else + } else { applied = false; + } - if (applied) + if (applied) { CAudioSys::SetVolumeScale(x34_volumeScale); + } s_ActiveAcousticsAreaId = x4_areaId; }