From cd9439c5b703da0a5649ab83f3c079ffc2ea9733 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Sep 2004 15:23:31 +0000 Subject: [PATCH] fixed it so pngs load again. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@230 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/image.c b/engine/client/image.c index 81983879a..e026580cf 100644 --- a/engine/client/image.c +++ b/engine/client/image.c @@ -1484,7 +1484,7 @@ qbyte *Read32BitImageFile(qbyte *buf, int len, int *width, int *height) return data; #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; #endif #ifdef AVAIL_JPEGLIB