Skip to content

Commit

Permalink
Rend2: Fix wall marks
Browse files Browse the repository at this point in the history
  • Loading branch information
MAN-AT-ARMS committed Nov 29, 2014
1 parent 15d8683 commit 8332501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rend2/tr_marks.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void R_BoxSurfaces_r( mnode_t *node, vec3_t mins, vec3_t maxs, surfaceType_t **l
s = BoxOnPlaneSide( mins, maxs, &surf->cullinfo.plane );
if ( s == 1 || s == 2 ) {
*surfViewCount = tr.viewCount;
} else if (DotProduct(surf->cullinfo.plane.normal, dir) > -0.5) {
} else if (DotProduct(surf->cullinfo.plane.normal, dir) < -0.5) {
// don't add faces that make sharp angles with the projection direction
*surfViewCount = tr.viewCount;
}
Expand Down

0 comments on commit 8332501

Please sign in to comment.