aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-20 23:48:58 -0700
committerChris Robinson <[email protected]>2014-06-20 23:48:58 -0700
commit81b3395b4146d56375eee2a2ce477a213a991fc2 (patch)
treeb3460ddaa974c3cd6a4e6ed9d7a1eea041d32827 /Alc/ALc.c
parentbe903d67b87a38616d4b7a901c3bf93441b1cb91 (diff)
Avoid negating 'negative' variable names
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 1b3e3ba8..0af8fc9d 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1782,8 +1782,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
if(device->Type != Loopback)
{
- int nohrtf = !(device->Flags&DEVICE_HRTF_REQUEST);
- if(GetConfigValueBool(NULL, "hrtf", !nohrtf))
+ bool usehrtf = !!(device->Flags&DEVICE_HRTF_REQUEST);
+ if(GetConfigValueBool(NULL, "hrtf", usehrtf))
device->Flags |= DEVICE_HRTF_REQUEST;
else
device->Flags &= ~DEVICE_HRTF_REQUEST;