mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Cleanups, whitespace, convert some ints to unsigned int. Whee!
This commit is contained in:
parent
42f8b98f27
commit
ceb307aead
1 changed files with 14 additions and 12 deletions
|
@ -144,8 +144,9 @@ R_AddDynamicLights (msurface_t *surf)
|
|||
{
|
||||
float dist;
|
||||
int lnum, maxdist, maxdist2, maxdist3, red, green, blue, smax,
|
||||
smax3, tmax, td, i, j, s, t;
|
||||
int sdtable[18];
|
||||
smax3, tmax;
|
||||
unsigned int td, i, j, s, t;
|
||||
unsigned int sdtable[18];
|
||||
unsigned int *bl;
|
||||
vec3_t impact, local;
|
||||
|
||||
|
@ -220,8 +221,8 @@ void
|
|||
R_BuildLightMap (msurface_t *surf, byte * dest, int stride)
|
||||
{
|
||||
byte *lightmap;
|
||||
int maps, shift, size, smax, tmax, t2, i, j;
|
||||
unsigned int scale;
|
||||
int maps, shift, size, smax, tmax, i, j;
|
||||
unsigned int scale, t2;
|
||||
unsigned int *bl;
|
||||
|
||||
surf->cached_dlight = (surf->dlightframe == r_framecount);
|
||||
|
@ -783,7 +784,7 @@ R_RecursiveWorldNode (mnode_t *node)
|
|||
continue; // wrong side
|
||||
|
||||
if (surf->flags & SURF_DRAWTURB) {
|
||||
if (r_wateralpha->value < 1)
|
||||
if (r_wateralpha->value < 1.0)
|
||||
CHAIN_SURF_B2F (surf, waterchain);
|
||||
else
|
||||
CHAIN_SURF (surf, waterchain);
|
||||
|
@ -839,7 +840,8 @@ R_MarkLeaves (void)
|
|||
{
|
||||
byte solid[4096];
|
||||
byte *vis;
|
||||
int c, i;
|
||||
int c;
|
||||
unsigned int i;
|
||||
mleaf_t *leaf;
|
||||
mnode_t *node;
|
||||
msurface_t **mark;
|
||||
|
|
Loading…
Reference in a new issue