Skip to content

Commit

Permalink
no test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 10, 2024
1 parent 5d75ee1 commit 042f364
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/engine/renderer/tr_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,14 +631,11 @@ static bspNode_t *R_PointInLeaf( const vec3_t p )

float d = DotProduct( p, plane->normal ) - plane->dist;

if ( d > 0 )
{
node = node->children[ 0 ];
}
else
{
node = node->children[ 1 ];
}
// if ( d > 0 ) node = node->children[ 0 ];
// else node = node->children[ 0 ];
bspNode_t** c = &node->children[ 0 ];
c += (int) d <= 0;
node = *c;
}

return node;
Expand Down

0 comments on commit 042f364

Please sign in to comment.