From 81b3395b4146d56375eee2a2ce477a213a991fc2 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 20 Jun 2014 23:48:58 -0700 Subject: Avoid negating 'negative' variable names --- Alc/ALc.c | 4 ++-- 1 file 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; -- cgit v1.2.3