mirror of https://bitbucket.org/CPMADevs/cnq3
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:
parent
75f0635f3f
commit
049793f8f9
|
@ -68,8 +68,8 @@ static void RB_DrawDynamicLight()
|
||||||
VectorSubtract(dl->transformed, tess.xyz[i], dist);
|
VectorSubtract(dl->transformed, tess.xyz[i], dist);
|
||||||
|
|
||||||
const float dp = DotProduct(dist, tess.normal[i]);
|
const float dp = DotProduct(dist, tess.normal[i]);
|
||||||
if (cullType == CT_FRONT_SIDED && dp <= 0.0f ||
|
if ((cullType == CT_FRONT_SIDED && dp <= 0.0f) ||
|
||||||
cullType == CT_BACK_SIDED && dp >= 0.0f) {
|
(cullType == CT_BACK_SIDED && dp >= 0.0f)) {
|
||||||
clipBits[i] = byte(-1);
|
clipBits[i] = byte(-1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue