- Fixed: Skyboxes never cleared planes when a 3D floor was in view.

SVN r4164 (trunk)
This commit is contained in:
Randy Heit 2013-02-23 05:15:32 +00:00
commit 2919bdf4fe
4 changed files with 8 additions and 6 deletions

View file

@ -1002,15 +1002,15 @@ static void R_DrawSkyStriped (visplane_t *pl)
CVAR (Bool, tilt, false, 0);
//CVAR (Int, pa, 0, 0)
void R_DrawPlanes ()
int R_DrawPlanes ()
{
visplane_t *pl;
int i;
int vpcount;
int vpcount = 0;
ds_color = 3;
for (i = vpcount = 0; i < MAXVISPLANES; i++)
for (i = 0; i < MAXVISPLANES; i++)
{
for (pl = visplanes[i]; pl; pl = pl->next)
{
@ -1024,6 +1024,7 @@ void R_DrawPlanes ()
}
}
}
return vpcount;
}
// kg3D - draw all visplanes with "height"
@ -1329,7 +1330,6 @@ void R_DrawSkyBoxes ()
for (*freehead = visplanes[MAXVISPLANES], visplanes[MAXVISPLANES] = NULL; *freehead; )
freehead = &(*freehead)->next;
}
ADD_STAT(skyboxes)