Skip to content

Commit

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

bspNode_t *node = tr.world->nodes;

while ( true )
while ( node->contents == -1 )
{
if ( node->contents != -1 )
{
break;
}

cplane_t *plane = node->plane;

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

0 comments on commit 5d75ee1

Please sign in to comment.