diff options
| author | navewindre <boneyaard@gmail.com> | 2018-11-18 20:06:19 +0100 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-11-18 20:06:19 +0100 |
| commit | ee88bdeca83ebf6aff4b2bebf2c1f93eb2bf9541 (patch) | |
| tree | ce352cb7c1f10780c4a1584c7dbd3483d4179d36 /internal_rewrite/c_base_player.cpp | |
| parent | cbb78808aa8d30055afbabf72f61183ba9015935 (diff) | |
d
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( );
|
