mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Remove fudging from the end of (O)WallMost
- This might have been added in an effort to fix problems caused by mixing inclusive and exclusive right edges. It might not be needed anymore. Let's find out...
This commit is contained in:
parent
26eb335622
commit
3ad2e4191d
1 changed files with 1 additions and 11 deletions
|
@ -520,7 +520,7 @@ void R_RenderMaskedSegRange (drawseg_t *ds, int x1, int x2)
|
||||||
wallupper[i] = mceilingclip[i];
|
wallupper[i] = mceilingclip[i];
|
||||||
}
|
}
|
||||||
mceilingclip = wallupper;
|
mceilingclip = wallupper;
|
||||||
}
|
}
|
||||||
if (fake3D & FAKE3D_CLIPBOTTOM)
|
if (fake3D & FAKE3D_CLIPBOTTOM)
|
||||||
{
|
{
|
||||||
OWallMost(walllower, sclipBottom - viewz, &WallC);
|
OWallMost(walllower, sclipBottom - viewz, &WallC);
|
||||||
|
@ -2763,11 +2763,6 @@ int OWallMost (short *mostbuf, fixed_t z, const FWallCoords *wallc)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (mostbuf[ix1] < 0) mostbuf[ix1] = 0;
|
|
||||||
else if (mostbuf[ix1] > viewheight) mostbuf[ix1] = (short)viewheight;
|
|
||||||
if (mostbuf[ix2-1] < 0) mostbuf[ix2-1] = 0;
|
|
||||||
else if (mostbuf[ix2-1] > viewheight) mostbuf[ix2-1] = (short)viewheight;
|
|
||||||
|
|
||||||
return bad;
|
return bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2921,11 +2916,6 @@ int WallMost (short *mostbuf, const secplane_t &plane, const FWallCoords *wallc)
|
||||||
qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, y + centeryfrac,yinc);
|
qinterpolatedown16short (&mostbuf[ix1], ix2-ix1, y + centeryfrac,yinc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mostbuf[ix1] < 0) mostbuf[ix1] = 0;
|
|
||||||
else if (mostbuf[ix1] > viewheight) mostbuf[ix1] = (short)viewheight;
|
|
||||||
if (mostbuf[ix2-1] < 0) mostbuf[ix2-1] = 0;
|
|
||||||
else if (mostbuf[ix2-1] > viewheight) mostbuf[ix2-1] = (short)viewheight;
|
|
||||||
|
|
||||||
return bad;
|
return bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue