diff --git a/code/client/cl_console.cpp b/code/client/cl_console.cpp index 67df9a5..bb1cea8 100644 --- a/code/client/cl_console.cpp +++ b/code/client/cl_console.cpp @@ -801,8 +801,8 @@ static void Con_DrawSolidConsole( float frac ) const short* text = con.text + (row % con.totallines)*con.linewidth; re.SetColor( colShadow ); - for (int i = 0; i < con.linewidth; ++i) { - SCR_DrawChar( 1 + con.xadjust + i * con.cw, 1 + y, con.cw, con.ch, (text[i] & 0xFF) ); + for (int j = 0; j < con.linewidth; ++j) { + SCR_DrawChar( 1 + con.xadjust + j * con.cw, 1 + y, con.cw, con.ch, (text[j] & 0xFF) ); } re.SetColor( colText ); diff --git a/code/client/cl_parse.cpp b/code/client/cl_parse.cpp index 653e7fb..b720308 100644 --- a/code/client/cl_parse.cpp +++ b/code/client/cl_parse.cpp @@ -431,12 +431,12 @@ static void CL_ParseGamestate( msg_t *msg ) // all previous config string commands need to be marked as invalid for ( i = 0; i < MAX_RELIABLE_COMMANDS; ++i ) { - const char* const cmd = clc.serverCommands[i]; + const char* const cmdStr = clc.serverCommands[i]; - if ( !strncmp(cmd, "cs " , 3) || - !strncmp(cmd, "bcs0 ", 5) || - !strncmp(cmd, "bcs1 ", 5) || - !strncmp(cmd, "bcs2 ", 5) ) + if ( !strncmp(cmdStr, "cs " , 3) || + !strncmp(cmdStr, "bcs0 ", 5) || + !strncmp(cmdStr, "bcs1 ", 5) || + !strncmp(cmdStr, "bcs2 ", 5) ) clc.serverCommandsBad[i] = qtrue; } diff --git a/code/renderer/tr_backend.cpp b/code/renderer/tr_backend.cpp index 5123e19..d03c5d6 100644 --- a/code/renderer/tr_backend.cpp +++ b/code/renderer/tr_backend.cpp @@ -246,9 +246,9 @@ static void RB_RenderDrawSurfList( const drawSurf_t* drawSurfs, int numDrawSurfs const int numVertexes = tess.numVertexes - firstVertex; const int numIndexes = tess.numIndexes - firstIndex; RB_DeformTessGeometry( firstVertex, numVertexes, firstIndex, numIndexes ); - for ( int i = 0; i < shader->numStages; ++i ) { - R_ComputeColors( shader->stages[i], tess.svars[i], firstVertex, numVertexes ); - R_ComputeTexCoords( shader->stages[i], tess.svars[i], firstVertex, numVertexes, qfalse ); + for ( int s = 0; s < shader->numStages; ++s ) { + R_ComputeColors( shader->stages[s], tess.svars[s], firstVertex, numVertexes ); + R_ComputeTexCoords( shader->stages[s], tess.svars[s], firstVertex, numVertexes, qfalse ); } } continue; @@ -270,9 +270,9 @@ static void RB_RenderDrawSurfList( const drawSurf_t* drawSurfs, int numDrawSurfs // so we need to compute everything added with the first one now tess.shader = shaderPrev; RB_DeformTessGeometry( 0, tess.numVertexes, 0, tess.numIndexes ); - for ( int i = 0; i < shaderPrev->numStages; ++i ) { - R_ComputeColors( shaderPrev->stages[i], tess.svars[i], 0, tess.numVertexes ); - R_ComputeTexCoords( shaderPrev->stages[i], tess.svars[i], 0, tess.numVertexes, qfalse ); + for ( int s = 0; s < shaderPrev->numStages; ++s ) { + R_ComputeColors( shaderPrev->stages[s], tess.svars[s], 0, tess.numVertexes ); + R_ComputeTexCoords( shaderPrev->stages[s], tess.svars[s], 0, tess.numVertexes, qfalse ); } } tess.shader = shader; @@ -283,9 +283,9 @@ static void RB_RenderDrawSurfList( const drawSurf_t* drawSurfs, int numDrawSurfs const int numVertexes = tess.numVertexes - firstVertex; const int numIndexes = tess.numIndexes - firstIndex; RB_DeformTessGeometry( firstVertex, numVertexes, firstIndex, numIndexes ); - for ( int i = 0; i < shader->numStages; ++i ) { - R_ComputeColors( shader->stages[i], tess.svars[i], firstVertex, numVertexes ); - R_ComputeTexCoords( shader->stages[i], tess.svars[i], firstVertex, numVertexes, qfalse ); + for ( int s = 0; s < shader->numStages; ++s ) { + R_ComputeColors( shader->stages[s], tess.svars[s], firstVertex, numVertexes ); + R_ComputeTexCoords( shader->stages[s], tess.svars[s], firstVertex, numVertexes, qfalse ); } sort = drawSurf->sort; oldEntityNum = entityNum; diff --git a/code/renderer/tr_init.cpp b/code/renderer/tr_init.cpp index fbcdcde..a41e3e6 100644 --- a/code/renderer/tr_init.cpp +++ b/code/renderer/tr_init.cpp @@ -120,13 +120,6 @@ cvar_t *r_directedScale; cvar_t *r_debugLight; cvar_t *r_debugSort; -/////////////////////////////////////////////////////////////// -cvar_t *r_maplightBrightness; -cvar_t *r_maplightSaturation; -cvar_t *r_maplightColor; -cvar_t *r_maplightColorMode; -vec3_t vMaplightColorFilter; - // these limits apply to the sum of all scenes in a frame: // the main view, all the 3D icons, and even the console etc #define DEFAULT_MAX_POLYS 8192