mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-18 15:11:43 +00:00
reduce the amount of compiler warnings for variable shadowing
This commit is contained in:
parent
1d0a044de3
commit
bbd17d75ce
8 changed files with 2 additions and 9 deletions
|
@ -1025,7 +1025,6 @@ bot_randomlist_t *BotLoadRandomStrings(char *filename)
|
|||
} //end if
|
||||
while(!PC_CheckTokenString(source, "}"))
|
||||
{
|
||||
size_t len;
|
||||
if (!BotLoadChatMessage(source, chatmessagestring))
|
||||
{
|
||||
FreeSource(source);
|
||||
|
|
|
@ -636,7 +636,6 @@ void CG_AddParticleToScene (cparticle_t *p, vec3_t org, float alpha)
|
|||
}
|
||||
else if (p->type == P_FLAT_SCALEUP)
|
||||
{
|
||||
float width, height;
|
||||
float sinR, cosR;
|
||||
|
||||
if (p->color == BLOODRED)
|
||||
|
|
|
@ -789,7 +789,6 @@ void CL_ParseVoip ( msg_t *msg ) {
|
|||
}
|
||||
|
||||
for (i = 0; i < frames; i++) {
|
||||
char encoded[256];
|
||||
const int len = MSG_ReadByte(msg);
|
||||
if (len < 0) {
|
||||
Com_DPrintf("VoIP: Short packet!\n");
|
||||
|
|
|
@ -164,7 +164,6 @@ void S_TransferPaintBuffer(int endtime)
|
|||
|
||||
if ( s_testsound->integer ) {
|
||||
int i;
|
||||
int count;
|
||||
|
||||
// write a fixed sine wave
|
||||
count = (endtime - s_paintedtime);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -157,7 +157,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;
|
||||
|
@ -238,7 +237,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;
|
||||
|
|
|
@ -257,7 +257,6 @@ void SV_LinkEntity( sharedEntity_t *gEnt ) {
|
|||
if ( gEnt->r.bmodel && (angles[0] || angles[1] || angles[2]) ) {
|
||||
// expand for rotation
|
||||
float max;
|
||||
int i;
|
||||
|
||||
max = RadiusFromBounds( gEnt->r.mins, gEnt->r.maxs );
|
||||
for (i=0 ; i<3 ; i++) {
|
||||
|
|
Loading…
Reference in a new issue