mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Fix team colors in GL NQ.
This commit is contained in:
parent
ae4a30089e
commit
ca2c861671
2 changed files with 11 additions and 3 deletions
|
@ -234,8 +234,16 @@ Skin_SetupSkin (skin_t *skin, int cmap)
|
|||
s = skins + cmap;
|
||||
changed = (s->tex != skin->texels);
|
||||
s->tex = skin->texels;
|
||||
if (!changed)
|
||||
if (!changed) {
|
||||
skin->texnum = 0;
|
||||
skin->auxtex = 0;
|
||||
if (cmap >= 0) {
|
||||
skin->texnum = skin_textures + cmap;
|
||||
if (s->fb)
|
||||
skin->auxtex = skin_fb_textures + cmap;
|
||||
}
|
||||
return;
|
||||
}
|
||||
do_fb_skin (s);
|
||||
build_skin (skin, cmap);
|
||||
}
|
||||
|
|
|
@ -1019,9 +1019,9 @@ CL_ParseServerMessage (void)
|
|||
entity_t *ent = &cl_entities[i+1];
|
||||
byte col = MSG_ReadByte (net_message);
|
||||
if (col != cl.scores[i].colors)
|
||||
Skin_SetTranslation (i, col >> 4, col & 0xf);
|
||||
Skin_SetTranslation (i + 1, col >> 4, col & 0xf);
|
||||
cl.scores[i].colors = col;
|
||||
ent->skin = Skin_SetColormap (ent->skin, i);
|
||||
ent->skin = Skin_SetColormap (ent->skin, i + 1);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue