Browse Source

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

pull/2/head
SNMetamorph 3 years ago committed by a1batross
parent
commit
9515cccb94
  1. 7
      engine/client/cl_frame.c

7
engine/client/cl_frame.c

@ -58,10 +58,13 @@ void CL_UpdatePositions( cl_entity_t *ent )
ent->current_position = (ent->current_position + 1) & HISTORY_MASK; ent->current_position = (ent->current_position + 1) & HISTORY_MASK;
ph = &ent->ph[ent->current_position]; ph = &ent->ph[ent->current_position];
VectorCopy( ent->curstate.origin, ph->origin ); VectorCopy( ent->curstate.origin, ph->origin );
VectorCopy( ent->curstate.angles, ph->angles ); 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;
} }
/* /*

Loading…
Cancel
Save