mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 11:51:17 +00:00
apply a player skin patch from Jukka.
This commit is contained in:
parent
f9b2b9e6ad
commit
7932608a22
1 changed files with 4 additions and 3 deletions
|
@ -1292,7 +1292,7 @@ trivertx_t *poseverts[MAXALIASFRAMES];
|
||||||
int posenum;
|
int posenum;
|
||||||
|
|
||||||
byte **player_8bit_texels_tbl;
|
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 );
|
Mod_FloodFillSkin( skin, pheader->skinwidth, pheader->skinheight );
|
||||||
|
|
||||||
// save 8 bit texels for the player model to remap
|
// 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);
|
texels = Hunk_AllocName(s, loadname);
|
||||||
pheader->texels[i] = texels - (byte *)pheader;
|
pheader->texels[i] = texels - (byte *)pheader;
|
||||||
memcpy (texels, (byte *)(pskintype + 1), s);
|
memcpy (texels, (byte *)(pskintype + 1), s);
|
||||||
// }
|
memcpy (player_8bit_texels,(byte *)(pskintype + 1), s);
|
||||||
|
}
|
||||||
snprintf(name, sizeof(name), "%s_%i", loadmodel->name, i);
|
snprintf(name, sizeof(name), "%s_%i", loadmodel->name, i);
|
||||||
pheader->gl_texturenum[i][0] =
|
pheader->gl_texturenum[i][0] =
|
||||||
pheader->gl_texturenum[i][1] =
|
pheader->gl_texturenum[i][1] =
|
||||||
|
|
Loading…
Reference in a new issue