- Changed xtoviewangle[] calculation so that when it mirrors the array to the left half, it

does not include xtoviewangle[centerx] in the mirroring so that the two columns at the center
  of the screen do not map to the same angle. (BTW, this array is only used for the sky drawing.)

SVN r2487 (trunk)
This commit is contained in:
Randy Heit 2010-08-01 20:21:04 +00:00
parent b2d018eccd
commit 9a025fbb23
2 changed files with 5 additions and 1 deletions

View file

@ -472,7 +472,7 @@ void R_InitTextureMapping ()
}
for (i = 0; i < centerx; i++)
{
xtoviewangle[i] = (angle_t)(-(signed)xtoviewangle[viewwidth-i-1]);
xtoviewangle[i] = (angle_t)(-(signed)xtoviewangle[viewwidth-i]);
}
}

View file

@ -740,6 +740,10 @@ inline void R_MakeSpans (int x, int t1, int b1, int t2, int b2, void (*mapfunc)(
// in the normal convention for patches, but uses color 0 as a transparent
// color instead.
//
// Note that since ZDoom now uses color 0 as transparent for other purposes,
// you can use normal texture transparency, so the distinction isn't so
// important anymore, but you should still be aware of it.
//
//==========================================================================
static FTexture *frontskytex, *backskytex;