summaryrefslogtreecommitdiff
path: root/src/cgame/cg_players.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_players.c')
-rw-r--r--src/cgame/cg_players.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c
index 30c16d9a..a5ce2a53 100644
--- a/src/cgame/cg_players.c
+++ b/src/cgame/cg_players.c
@@ -2189,11 +2189,13 @@ void CG_Corpse( centity_t *cent )
legs.oldframe = legs.frame = torso.oldframe = torso.frame = 0;
else if( !ci->nonsegmented )
{
+ memset( &cent->pe.legs, 0, sizeof( lerpFrame_t ) );
CG_RunLerpFrame( ci, &cent->pe.legs, es->legsAnim, 1 );
legs.oldframe = cent->pe.legs.oldFrame;
legs.frame = cent->pe.legs.frame;
legs.backlerp = cent->pe.legs.backlerp;
+ memset( &cent->pe.torso, 0, sizeof( lerpFrame_t ) );
CG_RunLerpFrame( ci, &cent->pe.torso, es->torsoAnim, 1 );
torso.oldframe = cent->pe.torso.oldFrame;
torso.frame = cent->pe.torso.frame;
@@ -2201,6 +2203,7 @@ void CG_Corpse( centity_t *cent )
}
else
{
+ memset( &cent->pe.nonseg, 0, sizeof( lerpFrame_t ) );
CG_RunLerpFrame( ci, &cent->pe.nonseg, es->legsAnim, 1 );
legs.oldframe = cent->pe.nonseg.oldFrame;
legs.frame = cent->pe.nonseg.frame;