]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/imagelib.c
q3map2 is now waring free
[xonotic/netradiant.git] / tools / quake3 / common / imagelib.c
index 9e52f1ed1a74dbe24efa1ad9234b1a6e2ec371c3..31e31850bdfb9b141a6f0f943bb0104566058472 100644 (file)
@@ -527,6 +527,7 @@ void LoadPCX( const char *filename, byte **pic, byte **palette, int *width, int
        for( y = 0; y <= pcx->ymax; y++, pix += pcx->xmax + 1 )
        {
                /* do a scanline */
+               runLength = 0;
                for( x=0; x <= pcx->xmax; )
                {
                        /* RR2DO2 */
@@ -1133,7 +1134,7 @@ void LoadTGA (const char *name, byte **pixels, int *width, int *height)
        //
        // load the file
        //
-       nLen = vfsLoadFile ( ( char * ) name, (void **)&buffer, 0);
+       nLen = vfsLoadFile ( name, (void **)&buffer, 0);
        if (nLen == -1)
        {
                Error ("Couldn't read %s", name);
@@ -1183,8 +1184,6 @@ void WriteTGA (const char *filename, byte *data, int width, int height) {
 
 void WriteTGAGray (const char *filename, byte *data, int width, int height) {
        byte    buffer[18];
-       int             i;
-       int             c;
        FILE    *f;
 
        memset (buffer, 0, 18);