Avoid possible overflows in the rotsprite arrays.

This commit is contained in:
Jaime Passos 2019-12-26 21:49:36 -03:00
parent 4b653a0b12
commit da1718f93c

View file

@ -1135,6 +1135,7 @@ INT32 R_GetRollAngle(angle_t rollangle)
ra += (ROTANGDIFF/2); ra += (ROTANGDIFF/2);
#endif #endif
ra /= ROTANGDIFF; ra /= ROTANGDIFF;
ra %= ROTANGLES;
return ra; return ra;
} }