mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-18 14:31:52 +00:00
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:
parent
b22df9d2d0
commit
39bc3f4ff9
1 changed files with 15 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue