diff options
Diffstat (limited to 'internal_rewrite/c_base_player.cpp')
| -rw-r--r-- | internal_rewrite/c_base_player.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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( );
|
