Reduce near-clipping range and fixes a bug with one-way walls that are also map limits.

git-svn-id: https://svn.eduke32.com/eduke32@1294 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-04-02 17:17:24 +00:00
parent 68cad843f6
commit 2994614501

View file

@ -597,7 +597,7 @@ void polymer_glinit(void)
bglMatrixMode(GL_PROJECTION);
bglLoadIdentity();
bgluPerspective((float)(pr_fov) / (2048.0f / 360.0f), (float)xdim / (float)ydim, 0.1f, 100.0f);
bgluPerspective((float)(pr_fov) / (2048.0f / 360.0f), (float)xdim / (float)ydim, 0.01f, 100.0f);
// get the new projection matrix
bglGetFloatv(GL_PROJECTION_MATRIX, projectionmatrix);
@ -2380,7 +2380,7 @@ static void polymer_drawwall(int16_t sectnum, int16_t wallnum)
polymer_drawplane(&w->over);
}
if (wall[wallnum].cstat & 32)
if ((wall[wallnum].cstat & 32) && (wall[wallnum].nextsector != -1))
polymer_drawplane(&w->mask);
if ((sector[sectnum].ceilingstat & 1) &&