diff --git a/common/gl_model.c b/common/gl_model.c index b92201b..e537e0e 100644 --- a/common/gl_model.c +++ b/common/gl_model.c @@ -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] =