From ee88bdeca83ebf6aff4b2bebf2c1f93eb2bf9541 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 18 Nov 2018 20:06:19 +0100 Subject: d --- internal_rewrite/c_base_player.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'internal_rewrite/c_base_player.cpp') diff --git a/internal_rewrite/c_base_player.cpp b/internal_rewrite/c_base_player.cpp index 0124e22..957aa2a 100644 --- a/internal_rewrite/c_base_player.cpp +++ b/internal_rewrite/c_base_player.cpp @@ -52,6 +52,9 @@ void CCSGOPlayerAnimState::update( float yaw, float pitch ) { if( !alloc ) return; + if( !this->pBaseEntity ) + return; + //bool* b = &c_base_player::s_bInvalidateBoneCache( ); //char backup = *b; @@ -944,11 +947,6 @@ void c_base_player::fix_animations( bool reset, bool resolver_change ) { bool moving = sm_animdata[ idx ].m_anim_velocity.length( ) > 0.1f; //compute_move_cycle( reset, moving ); - - if( is_fakewalking( ) && !reset ) { - //sm_animdata[ idx ].m_last_velocity = vec3_t( ); - //sm_animdata[ idx ].m_anim_velocity = vec3_t( ); - } get_animdata( ).m_anim_flags = m_fFlags( ); -- cgit v1.2.3