}
int c_fullskip;
-int c_portalskip, c_leafskip;
-int c_vistest, c_mighttest;
int c_chop, c_nochop;
continue;
}
- passage = (passage_t *) safe_malloc( sizeof( passage_t ) + portalbytes );
- memset( passage, 0, sizeof( passage_t ) + portalbytes );
+ passage = (passage_t *) safe_malloc0( sizeof( passage_t ) + portalbytes );
numseperators = AddSeperators( portal->winding, target->winding, qfalse, seperators, MAX_SEPERATORS * 2 );
numseperators += AddSeperators( target->winding, portal->winding, qtrue, &seperators[numseperators], MAX_SEPERATORS * 2 - numseperators );
return;
}
- p->portalfront = safe_malloc( portalbytes );
- memset( p->portalfront, 0, portalbytes );
+ p->portalfront = safe_malloc0( portalbytes );
- p->portalflood = safe_malloc( portalbytes );
- memset( p->portalflood, 0, portalbytes );
+ p->portalflood = safe_malloc0( portalbytes );
- p->portalvis = safe_malloc( portalbytes );
- memset( p->portalvis, 0, portalbytes );
+ p->portalvis = safe_malloc0( portalbytes );
for ( j = 0, tp = portals ; j < numportals * 2 ; j++, tp++ )
{
*/
/* ydnar: this is known-to-be-working farplane code */
- if ( farPlaneDist > 0.0f ) {
+ if ( !p->sky && !tp->sky && farPlaneDist > 0.0f ) {
VectorSubtract( p->origin, tp->origin, dir );
if ( VectorLength( dir ) - p->radius - tp->radius > farPlaneDist ) {
continue;