mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Merge 5379aaa353
into 0565403b15
This commit is contained in:
commit
e9f29ca40e
1 changed files with 5 additions and 0 deletions
|
@ -1287,6 +1287,11 @@ void CMultiPlayerAnimState::UpdateGestureLayer( CStudioHdr *pStudioHdr, GestureS
|
|||
// Get the current cycle.
|
||||
float flCycle = pGesture->m_pAnimLayer->m_flCycle;
|
||||
flCycle += pPlayer->GetSequenceCycleRate( pStudioHdr, pGesture->m_pAnimLayer->m_nSequence ) * gpGlobals->frametime * GetGesturePlaybackRate() * pGesture->m_pAnimLayer->m_flPlaybackRate;
|
||||
if ( flCycle < 0.0f )
|
||||
{
|
||||
// if playback rate is negative, allow the animation to loop backwards
|
||||
flCycle = 1.0f;
|
||||
}
|
||||
|
||||
pGesture->m_pAnimLayer->m_flPrevCycle = pGesture->m_pAnimLayer->m_flCycle;
|
||||
pGesture->m_pAnimLayer->m_flCycle = flCycle;
|
||||
|
|
Loading…
Reference in a new issue