From 0c5985374acf121f448cb84e101f8d8f9aebafe6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 30 Jul 2016 10:16:29 -0700 Subject: Simplify a format check --- Alc/effects/reverb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Alc/effects/reverb.c') diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c index 7f69e06f..b89b1988 100644 --- a/Alc/effects/reverb.c +++ b/Alc/effects/reverb.c @@ -961,9 +961,8 @@ static ALvoid ALreverbState_update(ALreverbState *State, const ALCdevice *Device props->Reverb.LateReverbPan, gain, props->Reverb.ReflectionsGain, props->Reverb.LateReverbGain, State); - else if(Device->FmtChans == DevFmtBFormat3D || Device->FmtChans == DevFmtAmbi1 || - Device->FmtChans == DevFmtAmbi2 || Device->FmtChans == DevFmtAmbi3 || - Device->AmbiDecoder) + else if(Device->AmbiDecoder || (Device->FmtChans >= DevFmtBFormat3D && + Device->FmtChans <= DevFmtAmbi3)) Update3DPanning(Device, props->Reverb.ReflectionsPan, props->Reverb.LateReverbPan, gain, props->Reverb.ReflectionsGain, -- cgit v1.2.3