Fix glitches with flats visible when looking up/down in 1st person
This commit is contained in:
parent
364339e1ce
commit
febefd41ba
|
@ -621,7 +621,7 @@ void R_ExecuteSetViewSize(void)
|
||||||
if (rendermode == render_soft)
|
if (rendermode == render_soft)
|
||||||
{
|
{
|
||||||
// this is only used for planes rendering in software mode
|
// this is only used for planes rendering in software mode
|
||||||
j = viewheight*4;
|
j = viewheight*8;
|
||||||
for (i = 0; i < j; i++)
|
for (i = 0; i < j; i++)
|
||||||
{
|
{
|
||||||
dy = ((i - viewheight*2)<<FRACBITS) + FRACUNIT/2;
|
dy = ((i - viewheight*2)<<FRACBITS) + FRACUNIT/2;
|
||||||
|
@ -968,6 +968,7 @@ void R_SkyboxFrame(player_t *player)
|
||||||
|
|
||||||
// recalc necessary stuff for mouseaiming
|
// recalc necessary stuff for mouseaiming
|
||||||
// slopes are already calculated for the full possible view (which is 4*viewheight).
|
// slopes are already calculated for the full possible view (which is 4*viewheight).
|
||||||
|
// 18/08/18: (No it's actually 8*viewheight, thanks MPC aka Jimita for finding this out)
|
||||||
|
|
||||||
if (rendermode == render_soft)
|
if (rendermode == render_soft)
|
||||||
{
|
{
|
||||||
|
@ -1093,6 +1094,7 @@ void R_SetupFrame(player_t *player, boolean skybox)
|
||||||
|
|
||||||
// recalc necessary stuff for mouseaiming
|
// recalc necessary stuff for mouseaiming
|
||||||
// slopes are already calculated for the full possible view (which is 4*viewheight).
|
// slopes are already calculated for the full possible view (which is 4*viewheight).
|
||||||
|
// 18/08/18: (No it's actually 8*viewheight, thanks MPC aka Jimita for finding this out)
|
||||||
|
|
||||||
if (rendermode == render_soft)
|
if (rendermode == render_soft)
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,7 +86,7 @@ static fixed_t planeheight;
|
||||||
// (this is to calculate yslopes only when really needed)
|
// (this is to calculate yslopes only when really needed)
|
||||||
// (when mouselookin', yslope is moving into yslopetab)
|
// (when mouselookin', yslope is moving into yslopetab)
|
||||||
// Check R_SetupFrame, R_SetViewSize for more...
|
// Check R_SetupFrame, R_SetViewSize for more...
|
||||||
fixed_t yslopetab[MAXVIDHEIGHT*4];
|
fixed_t yslopetab[MAXVIDHEIGHT*8];
|
||||||
fixed_t *yslope;
|
fixed_t *yslope;
|
||||||
|
|
||||||
fixed_t distscale[MAXVIDWIDTH];
|
fixed_t distscale[MAXVIDWIDTH];
|
||||||
|
|
|
@ -75,7 +75,7 @@ extern INT16 *lastopening, *openings;
|
||||||
extern size_t maxopenings;
|
extern size_t maxopenings;
|
||||||
|
|
||||||
extern INT16 floorclip[MAXVIDWIDTH], ceilingclip[MAXVIDWIDTH];
|
extern INT16 floorclip[MAXVIDWIDTH], ceilingclip[MAXVIDWIDTH];
|
||||||
extern fixed_t frontscale[MAXVIDWIDTH], yslopetab[MAXVIDHEIGHT*4];
|
extern fixed_t frontscale[MAXVIDWIDTH], yslopetab[MAXVIDHEIGHT*8];
|
||||||
extern fixed_t cachedheight[MAXVIDHEIGHT];
|
extern fixed_t cachedheight[MAXVIDHEIGHT];
|
||||||
extern fixed_t cacheddistance[MAXVIDHEIGHT];
|
extern fixed_t cacheddistance[MAXVIDHEIGHT];
|
||||||
extern fixed_t cachedxstep[MAXVIDHEIGHT];
|
extern fixed_t cachedxstep[MAXVIDHEIGHT];
|
||||||
|
|
Loading…
Reference in New Issue