mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
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:
parent
68cad843f6
commit
2994614501
1 changed files with 2 additions and 2 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue