images: Use only pcx manufacturer and version as ident

This commit is contained in:
Denis Pauk 2024-07-07 00:06:59 +03:00
parent cfebe51ec9
commit dec5897052

View file

@ -26,7 +26,7 @@
#include "../../client/header/client.h"
#define PCX_IDENT ((0x08 << 24) + (0x01 << 16) + (0x05 << 8) + 0x0a)
#define PCX_IDENT ((0x05 << 8) + 0x0a)
// don't need HDR stuff
#define STBI_NO_LINEAR
#define STBI_NO_HDR
@ -403,8 +403,8 @@ VID_ImageDecode(const char *filename, byte **pic, byte **palette,
*pic = NULL;
ident = LittleLong(*((int*)raw));
if (ident == PCX_IDENT)
ident = LittleShort(*((short*)raw));
if (!strcmp(ext, "pcx") && (ident == PCX_IDENT))
{
PCX_Decode(raw, len, pic, palette, width, height);