made some expression more legible as originally intended

the code is equivalent since && has higher precedence than ||
in other words, I messed up but got it right by sheer luck
This commit is contained in:
myT 2022-05-26 23:12:02 +02:00
parent 75f0635f3f
commit 049793f8f9
1 changed files with 2 additions and 2 deletions

View File

@ -68,8 +68,8 @@ static void RB_DrawDynamicLight()
VectorSubtract(dl->transformed, tess.xyz[i], dist);
const float dp = DotProduct(dist, tess.normal[i]);
if (cullType == CT_FRONT_SIDED && dp <= 0.0f ||
cullType == CT_BACK_SIDED && dp >= 0.0f) {
if ((cullType == CT_FRONT_SIDED && dp <= 0.0f) ||
(cullType == CT_BACK_SIDED && dp >= 0.0f)) {
clipBits[i] = byte(-1);
continue;
}