Add a helpful comment in order to make people who look at this in future suffer less.

This commit is contained in:
toasterbabe 2017-04-10 11:41:26 +01:00
parent e333dd62f0
commit 48ed7835d7

View file

@ -965,6 +965,13 @@ void R_DrawSinglePlane(visplane_t *pl)
if (hack)
{
/*
Essentially: We can't & the components along the regular axes when the plane is rotated.
This is because the distance on each regular axis in order to loop is different.
We rotate them, & the components, add them together, & them again, and then rotate them back.
These three seperate & operations are done per axis in order to prevent overflows.
toast 10/04/17
*/
const fixed_t cosinecomponent = FINECOSINE(hack>>ANGLETOFINESHIFT);
const fixed_t sinecomponent = FINESINE(hack>>ANGLETOFINESHIFT);