Skip to content

Commit

Permalink
Update csgo_playeranimstate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
r4klatif authored May 20, 2022
1 parent 8f16ca0 commit 8e5167e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/shared/cstrike15/csgo_playeranimstate.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
Expand Down Expand Up @@ -2377,7 +2377,7 @@ void CCSGOPlayerAnimState::SetUpVelocity( void )
}

#ifndef CLIENT_DLL
if ( m_flVelocityLengthXY <= CS_PLAYER_SPEED_STOPPED && m_bOnGround && !m_bOnLadder && !m_bLanding && m_flLastUpdateIncrement > 0 && abs( AngleDiff( m_flFootYawLast, m_flFootYaw ) / m_flLastUpdateIncrement > CSGO_ANIM_READJUST_THRESHOLD ) )
if ( m_flVelocityLengthXY <= CS_PLAYER_SPEED_STOPPED && m_bOnGround && !m_bOnLadder && !m_bLanding && m_flLastUpdateIncrement > 0 && abs( AngleDiff( m_flFootYawLast, m_flFootYaw ) / m_flLastUpdateIncrement ) > CSGO_ANIM_READJUST_THRESHOLD )
{
SetLayerSequence( ANIMATION_LAYER_ADJUST, SelectSequenceFromActMods( ACT_CSGO_IDLE_TURN_BALANCEADJUST ) );
m_bAdjustStarted = true;
Expand Down

0 comments on commit 8e5167e

Please sign in to comment.