mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
bf8ac1cb3b
commit
5e9a4033cb
1 changed files with 4 additions and 2 deletions
|
@ -100,7 +100,7 @@ void CalcSurfaceExtents (msurface_t *s)
|
|||
s->texturemins[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");
|
||||
}
|
||||
}
|
||||
|
@ -2362,6 +2362,8 @@ continue;
|
|||
#endif
|
||||
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->polys = NULL;
|
||||
}
|
||||
|
@ -4035,7 +4037,7 @@ void CM_ClipBoxToPatch (vec3_t mins, vec3_t maxs, vec3_t p1, vec3_t p2,
|
|||
}
|
||||
else
|
||||
{ // leave
|
||||
f = (d1 /*+ DIST_EPSILON*/) / (d1-d2);
|
||||
f = (d1 + DIST_EPSILON) / (d1-d2);
|
||||
if (f < leavefrac)
|
||||
leavefrac = f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue