Fix colormap and colormod.

Fitzquake doesn't support colormod, so it needs to be copied from baseline
at all times.

colormap was just a thinko/typo.
This commit is contained in:
Bill Currie 2012-06-28 14:36:05 +09:00
parent e41d269617
commit 0d8cd72a89
2 changed files with 4 additions and 3 deletions

View file

@ -599,9 +599,9 @@ CL_RelinkEntities (void)
set_entity_model (ent, new->modelindex);
}
ent->frame = new->frame;
if (cl_forcelink[i] || new->colormod != old->colormod) {
old->colormod = new->colormod;
ent->skin = mod_funcs->Skin_SetColormap (ent->skin, new->colormod);
if (cl_forcelink[i] || new->colormap != old->colormap) {
old->colormap = new->colormap;
ent->skin = mod_funcs->Skin_SetColormap (ent->skin, new->colormap);
}
if (cl_forcelink[i] || new->skinnum != old->skinnum) {
old->skinnum = new->skinnum;

View file

@ -568,6 +568,7 @@ CL_ParseUpdate (int bits)
if (bits & U_LERPFINISH) {
MSG_ReadByte (net_message); //FIXME ignored for now. see fitzquake
}
state->colormod = baseline->colormod;
} else {
state->alpha = baseline->alpha;
state->scale = baseline->scale;