fixed it so pngs load again.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@230 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-22 15:23:31 +00:00
parent 74397d5368
commit cd9439c5b7

View file

@ -1484,7 +1484,7 @@ qbyte *Read32BitImageFile(qbyte *buf, int len, int *width, int *height)
return data; return data;
#ifdef AVAIL_PNGLIB #ifdef AVAIL_PNGLIB
if ((buf[0] == -119 && buf[1] == 'P' && buf[2] == 'N' && buf[3] == 'G') && (data = ReadPNGFile(buf, com_filesize, width, height))) if ((buf[0] == 137 && buf[1] == 'P' && buf[2] == 'N' && buf[3] == 'G') && (data = ReadPNGFile(buf, com_filesize, width, height)))
return data; return data;
#endif #endif
#ifdef AVAIL_JPEGLIB #ifdef AVAIL_JPEGLIB