Browse Source

Set skin before setting initial entity model. Fixes wrong skin on some objects that don't receive a later skin update message.

console
Nico de Poel 5 years ago
parent
commit
cd03b692fd
  1. 3
      engine/Quake/cl_parse.c

3
engine/Quake/cl_parse.c

@ -630,7 +630,10 @@ void CL_ParseUpdate (int bits)
ent->lerpflags |= LERP_RESETANIM; //johnfitz -- don't lerp animation across model changes ent->lerpflags |= LERP_RESETANIM; //johnfitz -- don't lerp animation across model changes
if (num != cl.viewentity) if (num != cl.viewentity)
{
UQ_Game_SetEntitySkin(num, skin);
UQ_Game_SetEntityModel(num, model ? model->name : NULL); UQ_Game_SetEntityModel(num, model ? model->name : NULL);
}
} }
//johnfitz //johnfitz

Loading…
Cancel
Save