]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/imagem8/m8.cpp
apply patch from Martin Gerhardy - more quake2 related modules compiled and misc...
[xonotic/netradiant.git] / plugins / imagem8 / m8.cpp
index 8424367e34e983ef439b150b900e801441b07198..4b6dea55ff39182f45a12db402c03ad74c3a0855 100644 (file)
@@ -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) == (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--)
@@ -56,7 +56,7 @@ void LoadM8(const char *name, unsigned char **pic, int *width, int *height)
                }
        }
        strcat(text_buf, ".m8");
-       if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer) == (unsigned int) -1)
+       if ( length = vfsLoadFile ((char *) text_buf, (void **) &m8_file_buffer, 0) == (unsigned int) -1)
        {
                Sys_Printf("Unable to open file %s\n",name);
                return;