diff options
author | /dev/humancontroller <devhc@example.com> | 2013-04-14 18:33:26 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-05-31 23:10:57 +0100 |
commit | 83b6cff2d632f941389998bdbb95df9bb76bcf9d (patch) | |
tree | af7f2f0c0940c0be15d7795a2ab23bc21295e967 /src/renderergl2 | |
parent | 89fe33daec9bde09702c12dca1391a801b6265a3 (diff) |
reduce the amount of compiler warnings for variable shadowing
Diffstat (limited to 'src/renderergl2')
-rw-r--r-- | src/renderergl2/tr_model_iqm.c | 2 | ||||
-rw-r--r-- | src/renderergl2/tr_world.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/renderergl2/tr_model_iqm.c b/src/renderergl2/tr_model_iqm.c index a06e3be7..e949fb10 100644 --- a/src/renderergl2/tr_model_iqm.c +++ b/src/renderergl2/tr_model_iqm.c @@ -206,7 +206,7 @@ qboolean R_LoadIQM( model_t *mod, void *buffer, int filesize, const char *mod_na } vertexarray = (iqmVertexArray_t *)((byte *)header + header->ofs_vertexarrays); for( i = 0; i < header->num_vertexarrays; i++, vertexarray++ ) { - int j, n, *intPtr; + int n, *intPtr; if( vertexarray->size <= 0 || vertexarray->size > 4 ) { return qfalse; diff --git a/src/renderergl2/tr_world.c b/src/renderergl2/tr_world.c index cbce8157..dcf0bf00 100644 --- a/src/renderergl2/tr_world.c +++ b/src/renderergl2/tr_world.c @@ -158,7 +158,6 @@ static int R_DlightSurface( msurface_t *surf, int dlightBits ) { if ( surf->cullinfo.type & CULLINFO_PLANE ) { - int i; for ( i = 0 ; i < tr.refdef.num_dlights ; i++ ) { if ( ! ( dlightBits & ( 1 << i ) ) ) { continue; @@ -239,7 +238,6 @@ static int R_PshadowSurface( msurface_t *surf, int pshadowBits ) { if ( surf->cullinfo.type & CULLINFO_PLANE ) { - int i; for ( i = 0 ; i < tr.refdef.num_pshadows ; i++ ) { if ( ! ( pshadowBits & ( 1 << i ) ) ) { continue; |