mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
More people ought to know what modulo is...
Or modulous if your prefer.
This commit is contained in:
parent
6fe0874606
commit
f0787077e3
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…
Reference in a new issue