Skip to content

Commit a6fcbc9

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

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/unit-tests/src/teststubs.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ int demostartgametic;
4747

4848
void C_AddTabCommand(char const *) {}
4949
void C_RemoveTabCommand(char const *) {}
50-
void R_RotatePoint(int,int,unsigned long,int &,int &) {}
5150
void P_ShowSpawns(MapThing*) {}
5251
void G_DeathMatchSpawnPlayer(player_t&) {}
5352
player_t& consoleplayer() { static player_t fake{}; return fake; }
@@ -855,4 +854,12 @@ dyncolormap_t *GetSpecialLights (int lr, int lg, int lb, int fr, int fg, int fb)
855854
return colormap;
856855
}
857856

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

0 commit comments

Comments
 (0)