diff --git a/src/engine/renderer/tr_world.cpp b/src/engine/renderer/tr_world.cpp index caddc5f1f7..b37c43a8e4 100644 --- a/src/engine/renderer/tr_world.cpp +++ b/src/engine/renderer/tr_world.cpp @@ -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.0; + node = *c; } return node;