mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- 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:
parent
b2d018eccd
commit
9a025fbb23
2 changed files with 5 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue