From 5b3665e1f8c053c7b9b313b499129542b1fe3ce1 Mon Sep 17 00:00:00 2001 From: Kamay Xutax Date: Wed, 3 Apr 2024 00:32:25 +0200 Subject: [PATCH] Respect server code (InvalidateBoneCacheIfOlderThan) --- game/client/c_baseanimating.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/game/client/c_baseanimating.cpp b/game/client/c_baseanimating.cpp index 80cfb5e392..8ae5f6a9e4 100644 --- a/game/client/c_baseanimating.cpp +++ b/game/client/c_baseanimating.cpp @@ -5257,12 +5257,9 @@ void C_BaseAnimating::StudioFrameAdvance() m_flGroundSpeed = GetSequenceGroundSpeed( hdr, GetSequence() ) * GetModelScale(); -#if 0 - // I didn't have a test case for this, but it seems like the right thing to do. Check multi-player! - - // Msg("%s : %s : %5.1f\n", GetClassname(), GetSequenceName( GetSequence() ), GetCycle() ); - InvalidatePhysicsRecursive( ANIMATION_CHANGED ); -#endif + InvalidatePhysicsRecursive( ANIMATION_CHANGED ); + + InvalidateBoneCacheIfOlderThan( 0 ); if ( watch ) {