engine: client: cl_frame: fixed position history animtime for non-brush entities

This commit is contained in:
SNMetamorph 2022-04-06 20:40:39 +04:00 committed by a1batross
parent a7d02b8268
commit 9515cccb94
1 changed files with 5 additions and 2 deletions

View File

@ -58,10 +58,13 @@ void CL_UpdatePositions( cl_entity_t *ent )
ent->current_position = (ent->current_position + 1) & HISTORY_MASK;
ph = &ent->ph[ent->current_position];
VectorCopy( ent->curstate.origin, ph->origin );
VectorCopy( ent->curstate.angles, ph->angles );
ph->animtime = ent->curstate.animtime; // !!!
if( ent->model->type == mod_brush )
ph->animtime = ent->curstate.animtime;
else
ph->animtime = cl.time;
}
/*