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:
Spoike 2005-09-07 01:05:27 +00:00
parent e114d9203a
commit 79022ea924

View file

@ -699,12 +699,12 @@ void Q1BSP_ClipDecalToNodes (fragmentdecal_t *dec, mnode_t *node)
if (surf->flags & SURF_PLANEBACK) if (surf->flags & SURF_PLANEBACK)
{ {
if (DotProduct(surf->plane->normal, dec->normal) < -0.1) if (-DotProduct(surf->plane->normal, dec->normal) > -0.5)
continue; continue;
} }
else else
{ {
if (-DotProduct(surf->plane->normal, dec->normal) < -0.1) if (DotProduct(surf->plane->normal, dec->normal) > -0.5)
continue; continue;
} }
Q1BSP_FragmentToMesh(dec, surf->mesh); Q1BSP_FragmentToMesh(dec, surf->mesh);