From 9a025fbb2399e0124a8f06034c18c3437b18ecef Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 1 Aug 2010 20:21:04 +0000 Subject: [PATCH] - 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) --- src/r_main.cpp | 2 +- src/r_plane.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/r_main.cpp b/src/r_main.cpp index cbacb93a5b..93131b1499 100644 --- a/src/r_main.cpp +++ b/src/r_main.cpp @@ -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]); } } diff --git a/src/r_plane.cpp b/src/r_plane.cpp index aae870fbeb..b89a2979e0 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -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;