From 1a05dda8db905ada91ac29a34a89aac8c14a9012 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 12 Nov 2020 12:46:15 -0800 Subject: Avoid testing a bool against AL_FALSE --- alc/alu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3