Cleanups, whitespace, convert some ints to unsigned int. Whee!

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-11-06 05:06:37 +00:00
parent 42f8b98f27
commit ceb307aead
1 changed files with 14 additions and 12 deletions

View File

@ -144,8 +144,9 @@ R_AddDynamicLights (msurface_t *surf)
{ {
float dist; float dist;
int lnum, maxdist, maxdist2, maxdist3, red, green, blue, smax, int lnum, maxdist, maxdist2, maxdist3, red, green, blue, smax,
smax3, tmax, td, i, j, s, t; smax3, tmax;
int sdtable[18]; unsigned int td, i, j, s, t;
unsigned int sdtable[18];
unsigned int *bl; unsigned int *bl;
vec3_t impact, local; vec3_t impact, local;
@ -220,8 +221,8 @@ void
R_BuildLightMap (msurface_t *surf, byte * dest, int stride) R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
{ {
byte *lightmap; byte *lightmap;
int maps, shift, size, smax, tmax, t2, i, j; int maps, shift, size, smax, tmax, i, j;
unsigned int scale; unsigned int scale, t2;
unsigned int *bl; unsigned int *bl;
surf->cached_dlight = (surf->dlightframe == r_framecount); surf->cached_dlight = (surf->dlightframe == r_framecount);
@ -723,8 +724,8 @@ R_DrawBrushModel (entity_t *e)
if (gl_fb_bmodels->int_val) if (gl_fb_bmodels->int_val)
R_RenderFullbrights (); R_RenderFullbrights ();
//if (gl_sky_clip->int_val) // if (gl_sky_clip->int_val)
// R_DrawSkyChain (sky_chain); // R_DrawSkyChain (sky_chain);
qfglPopMatrix (); qfglPopMatrix ();
} }
@ -783,7 +784,7 @@ R_RecursiveWorldNode (mnode_t *node)
continue; // wrong side continue; // wrong side
if (surf->flags & SURF_DRAWTURB) { if (surf->flags & SURF_DRAWTURB) {
if (r_wateralpha->value < 1) if (r_wateralpha->value < 1.0)
CHAIN_SURF_B2F (surf, waterchain); CHAIN_SURF_B2F (surf, waterchain);
else else
CHAIN_SURF (surf, waterchain); CHAIN_SURF (surf, waterchain);
@ -839,7 +840,8 @@ R_MarkLeaves (void)
{ {
byte solid[4096]; byte solid[4096];
byte *vis; byte *vis;
int c, i; int c;
unsigned int i;
mleaf_t *leaf; mleaf_t *leaf;
mnode_t *node; mnode_t *node;
msurface_t **mark; msurface_t **mark;