Don't generate absurd decal fragments.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1279 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e114d9203a
commit
79022ea924
1 changed files with 2 additions and 2 deletions
|
@ -699,12 +699,12 @@ void Q1BSP_ClipDecalToNodes (fragmentdecal_t *dec, mnode_t *node)
|
|||
|
||||
if (surf->flags & SURF_PLANEBACK)
|
||||
{
|
||||
if (DotProduct(surf->plane->normal, dec->normal) < -0.1)
|
||||
if (-DotProduct(surf->plane->normal, dec->normal) > -0.5)
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (-DotProduct(surf->plane->normal, dec->normal) < -0.1)
|
||||
if (DotProduct(surf->plane->normal, dec->normal) > -0.5)
|
||||
continue;
|
||||
}
|
||||
Q1BSP_FragmentToMesh(dec, surf->mesh);
|
||||
|
|
Loading…
Reference in a new issue