mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue