mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
Whitespace.
This commit is contained in:
parent
7ea1051b9a
commit
d1c115da05
3 changed files with 14 additions and 13 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -62,6 +62,7 @@ static const char rcsid[] =
|
||||||
|
|
||||||
qboolean isDedicated = false;
|
qboolean isDedicated = false;
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Sys_Init (void)
|
Sys_Init (void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue