mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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;
|
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);
|
||||||
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue