File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -1171,21 +1171,17 @@ void AM_drawWalls(void)
11711171// Rotation in 2D.
11721172// Used to rotate player arrow line character.
11731173//
1174- void
1174+ static void
11751175AM_rotate
11761176( fixed_t * x,
11771177 fixed_t * y,
11781178 angle_t a )
11791179{
1180- fixed_t tmpx ;
1180+ a >>= ANGLETOFINESHIFT ;
11811181
1182- tmpx =
1183- FixedMul (*x,finecosine[a>>ANGLETOFINESHIFT])
1184- - FixedMul (*y,finesine[a>>ANGLETOFINESHIFT]);
1182+ fixed_t tmpx = FixedMul (*x, finecosine[a]) - FixedMul (*y, finesine[a]);
11851183
1186- *y =
1187- FixedMul (*x,finesine[a>>ANGLETOFINESHIFT])
1188- + FixedMul (*y,finecosine[a>>ANGLETOFINESHIFT]);
1184+ *y = FixedMul (*x, finesine[a]) + FixedMul (*y, finecosine[a]);
11891185
11901186 *x = tmpx;
11911187}
You can’t perform that action at this time.
0 commit comments