[qw] Disable lerping on player model change

This seems to be an ancient bug, but may have been exposed by the recent
entity changes (was certainly highlighted by Vulkan)
This commit is contained in:
Bill Currie 2021-03-19 22:54:20 +09:00
parent 8f7d6b1d02
commit 82e58dae5f

View file

@ -433,7 +433,11 @@ CL_LinkPlayers (void)
}
ang[ROLL] = V_CalcRoll (ang, state->pls.es.velocity) * 4.0;
ent->renderer.model = cl.model_precache[state->pls.es.modelindex];
if (ent->renderer.model
!= cl.model_precache[state->pls.es.modelindex]) {
ent->renderer.model = cl.model_precache[state->pls.es.modelindex];
ent->animation.nolerp = 1;
}
ent->animation.frame = state->pls.es.frame;
ent->renderer.skinnum = state->pls.es.skinnum;