From: havoc Date: Sun, 18 Feb 2007 23:10:19 +0000 (+0000) Subject: added an error message stating if an image file was loaded but decoding failed X-Git-Tag: xonotic-v0.1.0preview~3559 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d31818f744b04cb55e33158ea41760571eb20e2c;p=xonotic%2Fdarkplaces.git 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 --- 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)