apply a player skin patch from Jukka.

This commit is contained in:
Bill Currie 2000-05-08 09:14:41 +00:00
parent f9b2b9e6ad
commit 7932608a22

View file

@ -1292,7 +1292,7 @@ trivertx_t *poseverts[MAXALIASFRAMES];
int posenum;
byte **player_8bit_texels_tbl;
byte *player_8bit_texels;
byte player_8bit_texels[320*200];
/*
=================
@ -1491,11 +1491,12 @@ void *Mod_LoadAllSkins (int numskins, daliasskintype_t *pskintype)
Mod_FloodFillSkin( skin, pheader->skinwidth, pheader->skinheight );
// save 8 bit texels for the player model to remap
// if (!strcmp(loadmodel->name,"progs/player.mdl")) {
if (!strcmp(loadmodel->name,"progs/player.mdl")) {
texels = Hunk_AllocName(s, loadname);
pheader->texels[i] = texels - (byte *)pheader;
memcpy (texels, (byte *)(pskintype + 1), s);
// }
memcpy (player_8bit_texels,(byte *)(pskintype + 1), s);
}
snprintf(name, sizeof(name), "%s_%i", loadmodel->name, i);
pheader->gl_texturenum[i][0] =
pheader->gl_texturenum[i][1] =