mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
More people ought to know what modulo is...
Or modulous if your prefer.
This commit is contained in:
parent
5942c4f7b8
commit
40520302cd
1 changed files with 1 additions and 4 deletions
|
|
@ -2964,10 +2964,7 @@ static void P_ProcessLineSpecial(line_t *line, mobj_t *mo, sector_t *callsec)
|
|||
INT32 aim;
|
||||
|
||||
aim = sides[line->sidenum[0]].textureoffset>>FRACBITS;
|
||||
while (aim < 0)
|
||||
aim += 360;
|
||||
while (aim >= 360)
|
||||
aim -= 360;
|
||||
aim = (aim + 360) % 360;
|
||||
aim *= (ANGLE_90>>8);
|
||||
aim /= 90;
|
||||
aim <<= 8;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue