mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 11:21:01 +00:00
Avoid possible overflows in the rotsprite arrays.
This commit is contained in:
parent
4b653a0b12
commit
da1718f93c
1 changed files with 1 additions and 0 deletions
|
@ -1135,6 +1135,7 @@ INT32 R_GetRollAngle(angle_t rollangle)
|
|||
ra += (ROTANGDIFF/2);
|
||||
#endif
|
||||
ra /= ROTANGDIFF;
|
||||
ra %= ROTANGLES;
|
||||
return ra;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue