Skip to content

Commit d34e021

Browse files
committed
Fix linux build
1 parent 073b001 commit d34e021

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit-tests/src/teststubs.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -855,4 +855,12 @@ dyncolormap_t *GetSpecialLights (int lr, int lg, int lb, int fr, int fg, int fb)
855855
return colormap;
856856
}
857857

858+
void R_RotatePoint(fixed_t x, fixed_t y, angle_t ang, fixed_t &tx, fixed_t &ty)
859+
{
860+
int index = ang >> ANGLETOFINESHIFT;
861+
862+
tx = FixedMul(x, finecosine[index]) - FixedMul(y, finesine[index]);
863+
ty = FixedMul(x, finesine[index]) + FixedMul(y, finecosine[index]);
864+
}
865+
858866
VERSION_CONTROL (test_stubs_cpp, "$Id$")

0 commit comments

Comments
 (0)