fix a couple of inconsistencies.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4565 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
a445b8486a
commit
9d10c167b6
2 changed files with 2 additions and 1 deletions
|
@ -2262,7 +2262,7 @@ void Surf_DrawWorld (void)
|
||||||
CM_WriteAreaBits(cl.worldmodel, areabits, clientarea);
|
CM_WriteAreaBits(cl.worldmodel, areabits, clientarea);
|
||||||
}
|
}
|
||||||
#ifdef Q3BSPS
|
#ifdef Q3BSPS
|
||||||
if (currententity->model->fromgame == fg_quake3)
|
if (cl.worldmodel->fromgame == fg_quake3)
|
||||||
{
|
{
|
||||||
entvis = surfvis = R_MarkLeaves_Q3 ();
|
entvis = surfvis = R_MarkLeaves_Q3 ();
|
||||||
Surf_RecursiveQ3WorldNode (cl.worldmodel->nodes, (1<<r_refdef.frustum_numplanes)-1);
|
Surf_RecursiveQ3WorldNode (cl.worldmodel->nodes, (1<<r_refdef.frustum_numplanes)-1);
|
||||||
|
|
|
@ -1805,6 +1805,7 @@ qbyte *R_MarkLeaves_Q3 (void)
|
||||||
|
|
||||||
if (r_novis.ival || r_viewcluster == -1 || !cl.worldmodel->vis )
|
if (r_novis.ival || r_viewcluster == -1 || !cl.worldmodel->vis )
|
||||||
{
|
{
|
||||||
|
vis = NULL;
|
||||||
// mark everything
|
// mark everything
|
||||||
for (i=0,leaf=cl.worldmodel->leafs ; i<cl.worldmodel->numleafs ; i++, leaf++)
|
for (i=0,leaf=cl.worldmodel->leafs ; i<cl.worldmodel->numleafs ; i++, leaf++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue