git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@967
d7cf8633-e32d-0410-b094-
e92efae38249
}
+extern void Mathlib_Init(void);
+
/*
================
COM_Init
Cmd_AddCommand ("path", COM_Path_f);
Cmd_AddCommand ("memstats", COM_Memstats_f);
+ Mathlib_Init();
+
COM_InitFilesystem ();
COM_CheckRegistered ();
}
unsigned short d_lightstylevalue[256]; // 8.8 fraction of base light value
-float ixtable[4096];
-
void R_MarkLeaves (void);
//cvar_t r_norefresh = {0, "r_norefresh","0"};
void GL_Main_Init(void)
{
- int a;
FOG_registercvars();
- // LordHavoc: setup 1.0f / N table for quick recipricols of integers
- ixtable[0] = 0;
- for (a = 1;a < 4096;a++)
- ixtable[a] = 1.0f / a;
Cvar_RegisterVariable (&r_drawentities);
Cvar_RegisterVariable (&r_drawviewmodel);
Cvar_RegisterVariable (&r_speeds);
vec3_t vec3_origin = {0,0,0};
int nanmask = 255<<23;
+float ixtable[4096];
/*-----------------------------------------------------------------*/
return GreatestCommonDivisor (i1, i2 % i1);
}
}
+
+
+void Mathlib_Init(void)
+{
+ int a;
+
+ // LordHavoc: setup 1.0f / N table for quick recipricols of integers
+ ixtable[0] = 0;
+ for (a = 1;a < 4096;a++)
+ ixtable[a] = 1.0f / a;
+}
\ No newline at end of file