Nick Warne
2005-09-12 19:08:35 UTC
I noticed this today - some declares stuck between two functions.
In q_shared.c:
=====================================
float anglemod(float a)
{
#if 0
if (a >= 0)
a -= 360*(int)(a/360);
else
a += 360*( 1 + (int)(-a/360) );
#endif
a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
return a;
}
int i; <-------------------- What are these
vec3_t corners[2]; <-------------------- here for ???
// this is the slow, general version
int BoxOnPlaneSide2 (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
{
int i;
...
...
=====================================
Remove?
Nick
In q_shared.c:
=====================================
float anglemod(float a)
{
#if 0
if (a >= 0)
a -= 360*(int)(a/360);
else
a += 360*( 1 + (int)(-a/360) );
#endif
a = (360.0/65536) * ((int)(a*(65536/360.0)) & 65535);
return a;
}
int i; <-------------------- What are these
vec3_t corners[2]; <-------------------- here for ???
// this is the slow, general version
int BoxOnPlaneSide2 (vec3_t emins, vec3_t emaxs, struct cplane_s *p)
{
int i;
...
...
=====================================
Remove?
Nick
--
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."
"When you're chewing on life's gristle,
Don't grumble, Give a whistle..."