From 9515cccb94d4f30dc03106d4426ab0e192fddad0 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Wed, 6 Apr 2022 20:40:39 +0400 Subject: [PATCH] engine: client: cl_frame: fixed position history animtime for non-brush entities --- engine/client/cl_frame.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_frame.c b/engine/client/cl_frame.c index a9181ffb..70ce6e8e 100644 --- a/engine/client/cl_frame.c +++ b/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; 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; } /*