1
0
Fork 0
forked from fte/fteqw

try to fix a couple of rtlight issues.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4581 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2014-01-15 02:13:06 +00:00
parent e00155b8fa
commit c52a75aea0
2 changed files with 3 additions and 2 deletions

View file

@ -1464,7 +1464,7 @@ start:
{
pleaf = (mleaf_t *)node;
c = pleaf - cl.worldmodel->leafs;
c = (pleaf - cl.worldmodel->leafs)-1;
frustumvis[c>>3] |= 1<<(c&7);
mark = pleaf->firstmarksurface;
@ -2347,6 +2347,7 @@ void Surf_DrawWorld (void)
#ifdef TERRAIN
if (currentmodel->type == mod_heightmap)
{
frustumvis = NULL;
entvis = surfvis = NULL;
}
else

View file

@ -343,7 +343,7 @@ static void SHM_Shadow_Cache_Leaf(mleaf_t *leaf)
{
int i;
i = leaf - cl.worldmodel->leafs;
i = (leaf - cl.worldmodel->leafs)-1;
sh_shmesh->litleaves[i>>3] |= 1<<(i&7);
}