diff options
author | Chris Robinson <[email protected]> | 2014-06-20 23:48:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-06-20 23:48:58 -0700 |
commit | 81b3395b4146d56375eee2a2ce477a213a991fc2 (patch) | |
tree | b3460ddaa974c3cd6a4e6ed9d7a1eea041d32827 | |
parent | be903d67b87a38616d4b7a901c3bf93441b1cb91 (diff) |
Avoid negating 'negative' variable names
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |