Пример #1
0
static void CM_TraceThroughPatch(traceWork_t *tw, cPatch_t *patch)
{
	float oldFrac = tw->trace.fraction;

	c_patch_traces++;

	CM_TraceThroughPatchCollide(tw, patch->pc);

	if (tw->trace.fraction < oldFrac)
	{
		tw->trace.surfaceFlags = patch->surfaceFlags;
		tw->trace.contents     = patch->contents;
	}
}
Пример #2
0
void CM_TraceThroughPatch( traceWork_t *tw, trace_t &trace, cPatch_t *patch ) {
	float		oldFrac;

	c_patch_traces++;

	oldFrac = trace.fraction;

	CM_TraceThroughPatchCollide( tw, trace, patch->pc );

	if ( trace.fraction < oldFrac ) {
		trace.surfaceFlags = patch->surfaceFlags;
		trace.contents = patch->contents;
	}
}