Reduce the number of distinct roll angles

This commit is contained in:
fickleheart 2020-01-18 10:53:45 -06:00
parent 8679606ebb
commit 5757f24342
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ void R_CheckViewMorph(void)
#endif
rollangle >>= ANGLETOFINESHIFT;
rollangle = (((rollangle+1)/2)*2) & FINEMASK; // Limit the distinct number of angles to reduce recalcs from angles changing a lot.
rollangle = ((rollangle+2) & ~3) & FINEMASK; // Limit the distinct number of angles to reduce recalcs from angles changing a lot.
#ifdef WOUGHMP_WOUGHMP
fisheye &= ~0x7FF; // Same