diff --git a/tools/quake3/common/bspfile.c b/tools/quake3/common/bspfile.c index a5d5fbaf..4fc45bd6 100644 --- a/tools/quake3/common/bspfile.c +++ b/tools/quake3/common/bspfile.c @@ -294,10 +294,7 @@ void SwapBSPFile( void ) { ============= */ int GetLumpElements( dheader_t *header, int lump, int size ) { - int length, ofs; - - length = header->lumps[lump].filelen; - ofs = header->lumps[lump].fileofs; + int length = header->lumps[lump].filelen; if ( length % size ) { Error( "LoadBSPFile: odd lump size" ); diff --git a/tools/quake3/q3data/images.c b/tools/quake3/q3data/images.c index 3982b72f..bae43f75 100644 --- a/tools/quake3/q3data/images.c +++ b/tools/quake3/q3data/images.c @@ -381,11 +381,9 @@ byte AveragePixels( int count ){ int pix; int bestcolor; byte *pal; - int fullbright; vis = 0; r = g = b = 0; - fullbright = 0; for ( i = 0 ; i < count ; i++ ) { pix = pixdata[i]; diff --git a/tools/quake3/q3data/models.c b/tools/quake3/q3data/models.c index 439ae020..b7492628 100644 --- a/tools/quake3/q3data/models.c +++ b/tools/quake3/q3data/models.c @@ -559,7 +559,6 @@ static void CopyTrianglesToBaseTriangles( triangle_t *ptri, int numtri, baseTria // float s_scale, t_scale; // float scale; // vec3_t mins, maxs; - float *pbasevert; /* // @@ -618,8 +617,6 @@ static void CopyTrianglesToBaseTriangles( triangle_t *ptri, int numtri, baseTria for ( j = 0 ; j < 3 ; j++ ) { - pbasevert = ptri->verts[j]; - VectorCopy( ptri->verts[j], bTri->v[j].xyz ); VectorCopy( ptri->normals[j], bTri->v[j].normal ); @@ -1905,8 +1902,9 @@ static void ConvertASE( const char *filename, int type, qboolean grabAnims ){ } } - if ( !tagWeapon ) { - Error( "Missing tag_weapon!" ); + if ( !tagHead ) { + // todo: was never being checked; should we error now that it is? + // Error( "Missing tag_head!" ); } if ( !tagTorso ) { Error( "Missing tag_torso!" );