From d31818f744b04cb55e33158ea41760571eb20e2c Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 18 Feb 2007 23:10:19 +0000 Subject: [PATCH] added an error message stating if an image file was loaded but decoding failed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6856 d7cf8633-e32d-0410-b094-e92efae38249 --- image.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/image.c b/image.c index 27eaa5d7..e58c76a0 100644 --- 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) -- 2.39.2