Invalid skin number as developer message

This commit is contained in:
Maddes Buecher 2000-08-17 19:49:49 +00:00
parent 48b66f4578
commit f296c49b72

View file

@ -418,7 +418,7 @@ void R_TranslatePlayerSkin (int playernum)
paliashdr = (aliashdr_t *)Mod_Extradata (model);
s = paliashdr->skinwidth * paliashdr->skinheight;
if (currententity->skinnum < 0 || currententity->skinnum >= paliashdr->numskins) {
Con_Printf("(%d): Invalid player skin #%d\n", playernum, currententity->skinnum);
Con_DPrintf("(%d): Invalid player skin #%d\n", playernum, currententity->skinnum);
original = (byte *)paliashdr + paliashdr->texels[0];
} else
original = (byte *)paliashdr + paliashdr->texels[currententity->skinnum];