From 0d8dceea4310fde5706b3ce1c70609d72a38efdf Mon Sep 17 00:00:00 2001 From: John Schoenick Date: Wed, 9 Sep 2015 18:35:41 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/game/server/baseanimating.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mp/src/game/server/baseanimating.h') diff --git a/mp/src/game/server/baseanimating.h b/mp/src/game/server/baseanimating.h index 75300e8e..0550683e 100644 --- a/mp/src/game/server/baseanimating.h +++ b/mp/src/game/server/baseanimating.h @@ -108,6 +108,7 @@ public: void ResetEventIndexes ( void ); int SelectWeightedSequence ( Activity activity ); int SelectWeightedSequence ( Activity activity, int curSequence ); + int SelectWeightedSequenceFromModifiers( Activity activity, CUtlSymbol *pActivityModifiers, int iModifierCount ); int SelectHeaviestSequence ( Activity activity ); int LookupActivity( const char *label ); int LookupSequence ( const char *label ); @@ -436,10 +437,14 @@ inline CStudioHdr *CBaseAnimating::GetModelPtr( void ) return NULL; #ifdef _DEBUG - // GetModelPtr() is often called before OnNewModel() so go ahead and set it up first chance. - static IDataCacheSection *pModelCache = datacache->FindSection( "ModelData" ); - AssertOnce( pModelCache->IsFrameLocking() ); + if ( !HushAsserts() ) + { + // GetModelPtr() is often called before OnNewModel() so go ahead and set it up first chance. + static IDataCacheSection *pModelCache = datacache->FindSection( "ModelData" ); + AssertOnce( pModelCache->IsFrameLocking() ); + } #endif + if ( !m_pStudioHdr && GetModel() ) { LockStudioHdr(); -- cgit v1.2.3