mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Avoid possible overflows in the rotsprite arrays.
This commit is contained in:
parent
a187538157
commit
a88b0bffe7
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue