revert changes to centery calculation in R_SetupFreelook (#1584)

I don't understand why, but it fixes the garbage pixels reported in the DW
thread.
This commit is contained in:
Roman Fomin 2024-03-13 08:32:36 +07:00 committed by GitHub
parent ac5d78f78f
commit 26c7ab3423
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -501,8 +501,8 @@ static void R_SetupFreelook(void)
dy = 0;
}
centeryfrac = (viewheight << FRACBITS) / 2 + dy;
centery = centeryfrac >> FRACBITS;
centery = viewheight / 2 + (dy >> FRACBITS);
centeryfrac = centery << FRACBITS;
for (i = 0; i < viewheight; i++)
{