- eliminated tantoangle and cleaned up r_tables.h

This commit is contained in:
Christoph Oelckers 2016-04-28 12:18:33 +02:00
commit 26f54b0ba4
4 changed files with 5 additions and 77 deletions

View file

@ -158,27 +158,6 @@ DAngle viewpitch;
// CODE --------------------------------------------------------------------
static void R_Shutdown ();
//==========================================================================
//
// R_InitPointToAngle
//
//==========================================================================
void R_InitPointToAngle (void)
{
double f;
int i;
//
// slope (tangent) to angle lookup
//
for (i = 0; i <= SLOPERANGE; i++)
{
f = g_atan2 ((double)i, (double)SLOPERANGE) / (6.28318530718 /* 2*pi */);
tantoangle[i] = (angle_t)(0xffffffff*f);
}
}
//==========================================================================
//
// R_InitTables
@ -188,7 +167,7 @@ void R_InitPointToAngle (void)
void R_InitTables (void)
{
int i;
const double pimul = PI*2/FINEANGLES;
const double pimul = M_PI*2/FINEANGLES;
// viewangle tangent table
finetangent[0] = (fixed_t)(FRACUNIT*g_tan ((0.5-FINEANGLES/4)*pimul)+0.5);
@ -410,7 +389,6 @@ void R_Init ()
//R_InitColormaps ();
//StartScreen->Progress();
R_InitPointToAngle ();
R_InitTables ();
R_InitTranslationTables ();
R_SetViewSize (screenblocks);