Rename check_in_leaf to trace_enters_leaf.

This commit is contained in:
Bill Currie 2011-12-05 14:18:13 +09:00
parent 3bd029d599
commit 8307d9f233
1 changed files with 4 additions and 4 deletions

View File

@ -136,8 +136,8 @@ edges_intersect (const vec3_t p1, const vec3_t p2,
}
static int
check_in_leaf (hull_t *hull, trace_t *trace, clipleaf_t *leaf, plane_t *plane,
const vec3_t vel, const vec3_t org)
trace_enters_leaf (hull_t *hull, trace_t *trace, clipleaf_t *leaf,
plane_t *plane, const vec3_t vel, const vec3_t org)
{
clipport_t *portal;
int side;
@ -653,8 +653,8 @@ visit_leaf (hull_t *hull, int num, clipleaf_t *leaf, trace_t *trace,
// if plane is null, the trace did not cross the last node plane
if (trace->type != tr_point) {
if (state->split_plane
&& !check_in_leaf (hull, trace, leaf, state->split_plane,
state->vel, state->origin))
&& !trace_enters_leaf (hull, trace, leaf, state->split_plane,
state->vel, state->origin))
return 0; // we're not here
//FIXME this is probably slow
test_count++;