diff options
author | Chris Robinson <[email protected]> | 2020-11-12 12:46:15 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-11-12 12:46:15 -0800 |
commit | 1a05dda8db905ada91ac29a34a89aac8c14a9012 (patch) | |
tree | a866f6f4768096d577bad8c02c9e7fc3671fd3e6 /alc/alu.cpp | |
parent | 7e76770278688a0ff9d65405cb98ee0d22462476 (diff) |
Avoid testing a bool against AL_FALSE
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r-- | alc/alu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 8964a515..9f0c7ce5 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1334,7 +1334,7 @@ void CalcAttnSourceParams(Voice *voice, const VoiceProps *props, const ALCcontex alu::Vector Position{props->Position[0], props->Position[1], props->Position[2], 1.0f}; alu::Vector Velocity{props->Velocity[0], props->Velocity[1], props->Velocity[2], 0.0f}; alu::Vector Direction{props->Direction[0], props->Direction[1], props->Direction[2], 0.0f}; - if(props->HeadRelative == AL_FALSE) + if(!props->HeadRelative) { /* Transform source vectors */ Position = Listener.Params.Matrix * Position; |