Use the correct vector for the plane distance.

Oops :)
This commit is contained in:
Bill Currie 2011-11-20 14:14:42 +09:00
parent cde0bbb807
commit 7b59eaf0cd

View file

@ -119,7 +119,7 @@ check_in_leaf (hull_t *hull, trace_t *trace, clipleaf_t *leaf, plane_t *plane,
// the same normal vector, the normal vector length does not
// matter.
CrossProduct (vel, edge, cutplane.normal);
cutplane.dist = DotProduct (vel, point);
cutplane.dist = DotProduct (cutplane.normal, point);
dist = PlaneDiff (org, &cutplane);
offset = calc_offset (trace, &cutplane);
if (v_n >= 0)