Does that make physics any nicer?

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@433 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-11-17 17:33:16 +00:00
parent bf8ac1cb3b
commit 5e9a4033cb

View file

@ -100,7 +100,7 @@ void CalcSurfaceExtents (msurface_t *s)
s->texturemins[i] = bmins[i] * 16; s->texturemins[i] = bmins[i] * 16;
s->extents[i] = (bmaxs[i] - bmins[i]) * 16; s->extents[i] = (bmaxs[i] - bmins[i]) * 16;
// if ( !(tex->flags & TEX_SPECIAL) && s->extents[i] > 512 ) //q2 uses 512. // if ( !(tex->flags & TEX_SPECIAL) && s->extents[i] > 512 ) //q2 uses 512. probably for skys.
// Sys_Error ("Bad surface extents"); // Sys_Error ("Bad surface extents");
} }
} }
@ -2362,6 +2362,8 @@ continue;
#endif #endif
if (map_surfaces[in->shadernum].c.flags & (Q3SURF_NODRAW | Q3SURF_SKIP)) if (map_surfaces[in->shadernum].c.flags & (Q3SURF_NODRAW | Q3SURF_SKIP))
{ {
if (map_surfaces[in->shadernum].c.flags & Q3SURF_SKIP)
Con_Printf("Surface skip\n");
out->mesh = NULL; out->mesh = NULL;
out->polys = NULL; out->polys = NULL;
} }
@ -4035,7 +4037,7 @@ void CM_ClipBoxToPatch (vec3_t mins, vec3_t maxs, vec3_t p1, vec3_t p2,
} }
else else
{ // leave { // leave
f = (d1 /*+ DIST_EPSILON*/) / (d1-d2); f = (d1 + DIST_EPSILON) / (d1-d2);
if (f < leavefrac) if (f < leavefrac)
leavefrac = f; leavefrac = f;
} }