]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added an error message stating if an image file was loaded but decoding failed
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Feb 2007 23:10:19 +0000 (23:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 18 Feb 2007 23:10:19 +0000 (23:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6856 d7cf8633-e32d-0410-b094-e92efae38249

image.c

diff --git a/image.c b/image.c
index 27eaa5d70e8880e51e69a091374452064238732b..e58c76a0524941111146a14d78fc92d9cc317e2d 100644 (file)
--- a/image.c
+++ b/image.c
@@ -900,6 +900,11 @@ unsigned char *loadimagepixels (const char *filename, qboolean complain, int mat
                                        Mem_CheckSentinelsGlobal();
                                return data;
                        }
+                       else
+                       {
+                               if (developer.integer >= 1)
+                                       Con_Printf("Error loading image %s (file loaded but decode failed)\n", name);
+                       }
                }
        }
        if (complain)