diff --git a/src/client/player.qc b/src/client/player.qc index 530bc01..a8a8cbe 100644 --- a/src/client/player.qc +++ b/src/client/player.qc @@ -184,5 +184,6 @@ Player_PreDraw(base_player pl, int thirdperson) } Animation_PlayerUpdate((player)pl); + Animation_TimerUpdate((player)pl, clframetime); Player_HandleWeaponModel(pl, thirdperson); } diff --git a/src/shared/animations.qc b/src/shared/animations.qc index 3f7128d..00240a5 100755 --- a/src/shared/animations.qc +++ b/src/shared/animations.qc @@ -31,19 +31,19 @@ void Animation_Print(string sWow) { } void -Animation_TimerUpdate(player pl) +Animation_TimerUpdate(player pl, float ftime) { makevectors([0, pl.angles[1], 0]); /* top animation is always just being incremented */ - pl.anim_top_time += input_timelength; - pl.anim_top_delay -= input_timelength; + pl.anim_top_time += ftime; + pl.anim_top_delay -= ftime; /* we may be walking backwards, thus decrement bottom */ if (dotproduct(pl.velocity, v_forward) < 0) { - pl.anim_bottom_time -= input_timelength; + pl.anim_bottom_time -= ftime; } else { - pl.anim_bottom_time += input_timelength; + pl.anim_bottom_time += ftime; } }