Fixed skybox clipping: things in a skybox shouldn't be clipped against current portal. Fixed: portal inside of a skybox sets CurrentPortalInSkybox to false.

This commit is contained in:
ZZYZX 2016-01-10 05:45:26 +02:00
commit 605fce9008
3 changed files with 368 additions and 366 deletions

View file

@ -766,6 +766,7 @@ void R_EnterPortal (PortalDrawseg* pds, int depth)
// some portals have height differences, account for this here
R_3D_EnterSkybox(); // push 3D floor height map
CurrentPortalInSkybox = false; // first portal in a skybox should set this variable to false for proper clipping in skyboxes.
// first pass, set clipping
memcpy (ceilingclip + pds->x1, &pds->ceilingclip[0], pds->len*sizeof(*ceilingclip));