mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-30 08:44:31 +00:00
engine: client: cl_frame: fixed position history animtime for non-brush entities
This commit is contained in:
parent
a7d02b8268
commit
9515cccb94
@ -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…
x
Reference in New Issue
Block a user