Skip to content

Commit

Permalink
skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed May 10, 2024
1 parent daa53b4 commit 31949f7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/engine/renderer/tr_world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,13 @@ 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 1
bool side = d <= 0.0;
node = node->children[ side ];
#else
if ( d > 0 ) node = node->children[ 0 ];
else node = node->children[ 1 ];
#endif
}

return node;
Expand Down

0 comments on commit 31949f7

Please sign in to comment.