]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/imagem8/m8.cpp
Backing out commit 483. Going to set linker flags instead.
[xonotic/netradiant.git] / plugins / imagem8 / m8.cpp
index 4b6dea55ff39182f45a12db402c03ad74c3a0855..7e11d1e00f37363bdae0d0e718cc874c0121f669 100644 (file)
@@ -26,7 +26,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
 {
-    FILE       *f;
+//    FILE     *f;
     m8_header_t        *m8_header;
     rgb_t      *palette;
     int                i, num_pixels, size;
@@ -44,7 +44,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
     strcat(text_buf, ".pcx.m8");
 
     // open file
-       if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1)
+       if ( (length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0)) == (unsigned int) -1)
     {
        strcpy(text_buf, name);
        for(i=(strlen(text_buf)-1); i>0; i--)
@@ -62,7 +62,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
                return;
        }
     }
-    
+
     m8_header = (m8_header_t *)m8_file_buffer;
 
     // make sure we have a valid M8 file