Fixes the q2 'wireframe players' bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2183 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-04-09 02:02:44 +00:00
parent b22df9d2d0
commit 39bc3f4ff9
1 changed files with 15 additions and 0 deletions

View File

@ -407,6 +407,8 @@ qbyte *Skin_Cache32 (skin_t *skin)
else
path = "skins/";
skin->cachedbpp = 32;
//
// load the pic from disk
//
@ -423,6 +425,19 @@ qbyte *Skin_Cache32 (skin_t *skin)
return out;
}
}
sprintf (name, "%s%s.pcx", path, skin->name);
raw = COM_LoadTempFile (name);
if (raw)
{
pix = ReadPCXFile(raw, com_filesize, &skin->width, &skin->height);
if (pix)
{
out = Cache_Alloc(&skin->cache, skin->width*skin->height*4, name);
memcpy(out, pix, skin->width*skin->height*4);
BZ_Free(pix);
return out;
}
}
#ifdef AVAIL_PNGLIB
sprintf (name, "%s%s.png", path, skin->name);
raw = COM_LoadTempFile (name);