Whitespace.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-10-30 19:58:01 +00:00
parent 7ea1051b9a
commit d1c115da05
3 changed files with 14 additions and 13 deletions

View file

@ -75,8 +75,6 @@ typedef struct {
int *order; int *order;
} vert_order_t; } vert_order_t;
float r_avertexnormals[NUMVERTEXNORMALS][3] = { float r_avertexnormals[NUMVERTEXNORMALS][3] = {
#include "anorms.h" #include "anorms.h"
}; };
@ -92,6 +90,7 @@ float *shadedots = r_avertexnormal_dots[0];
int lastposenum, lastposenum0; int lastposenum, lastposenum0;
vec3_t shadevector; vec3_t shadevector;
static void static void
GL_DrawAliasFrame (vert_order_t *vo, qboolean fb) GL_DrawAliasFrame (vert_order_t *vo, qboolean fb)
{ {
@ -397,13 +396,13 @@ R_DrawAliasModel (entity_t *e, qboolean cull)
VectorAdd (currententity->origin, clmodel->mins, mins); VectorAdd (currententity->origin, clmodel->mins, mins);
VectorAdd (currententity->origin, clmodel->maxs, maxs); VectorAdd (currententity->origin, clmodel->maxs, maxs);
if (cull && R_CullBox (mins, maxs)) if (cull)
return; {
if (R_CullBox (mins, maxs))
/* return;
if (cull && R_CullBlocked(mins, maxs, currententity->origin)) // if (R_CullBlocked(mins, maxs, currententity->origin))
return; // return;
*/ }
// FIXME: shadecolor is supposed to be the lighting for the model, not // FIXME: shadecolor is supposed to be the lighting for the model, not
// just colormod // just colormod

View file

@ -106,6 +106,7 @@ void R_MarkLeaves (void);
void R_DrawAliasModel (entity_t *e, qboolean cull); void R_DrawAliasModel (entity_t *e, qboolean cull);
void R_DrawSpriteModel (entity_t *e); void R_DrawSpriteModel (entity_t *e);
void void
glrmain_init (void) glrmain_init (void)
{ {
@ -193,8 +194,8 @@ R_DrawEntitiesOnList (void)
R_DrawAliasModel (currententity, true); R_DrawAliasModel (currententity, true);
} }
qfglColor3ubv (color_white);
qfglColor3ubv (color_white);
qfglEnable (GL_ALPHA_TEST); qfglEnable (GL_ALPHA_TEST);
for (i = 0; i < r_numvisedicts; i++) { for (i = 0; i < r_numvisedicts; i++) {
if (r_visedicts[i]->model->type != mod_sprite) if (r_visedicts[i]->model->type != mod_sprite)
@ -522,9 +523,9 @@ R_CullBlocked (vec3_t mins, vec3_t maxs, vec3_t org)
return false; return false;
} }
rad = sqrt((maxs[0] - org[0]) * (maxs[0] - org[0]) + rad = sqrt ((maxs[0] - org[0]) * (maxs[0] - org[0]) +
(maxs[1] - org[1]) * (maxs[1] - org[1]) + (maxs[1] - org[1]) * (maxs[1] - org[1]) +
(maxs[2] - org[2]) * (maxs[2] - org[2])); (maxs[2] - org[2]) * (maxs[2] - org[2]));
// Check a few points on the bounding sphere to catch rotating objects // Check a few points on the bounding sphere to catch rotating objects
// Raise the origin a bit to catch droptofloor models // Raise the origin a bit to catch droptofloor models

View file

@ -62,6 +62,7 @@ static const char rcsid[] =
qboolean isDedicated = false; qboolean isDedicated = false;
void void
Sys_Init (void) Sys_Init (void)
{ {