mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-20 20:46:03 +08:00
Update from SDK 2013
This commit is contained in:

committed by
Nicholas Hastings

parent
e0e01948b8
commit
ebd971b421
@ -1,34 +1,34 @@
|
||||
//========= Copyright <20> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "cbase.h"
|
||||
#include "bone_accessor.h"
|
||||
|
||||
|
||||
#if defined( CLIENT_DLL ) && defined( _DEBUG )
|
||||
|
||||
void CBoneAccessor::SanityCheckBone( int iBone, bool bReadable ) const
|
||||
{
|
||||
if ( m_pAnimating )
|
||||
{
|
||||
CStudioHdr *pHdr = m_pAnimating->GetModelPtr();
|
||||
if ( pHdr )
|
||||
{
|
||||
mstudiobone_t *pBone = pHdr->pBone( iBone );
|
||||
if ( bReadable )
|
||||
{
|
||||
AssertOnce( pBone->flags & m_ReadableBones );
|
||||
}
|
||||
else
|
||||
{
|
||||
AssertOnce( pBone->flags & m_WritableBones );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||||
//
|
||||
// Purpose:
|
||||
//
|
||||
//=============================================================================//
|
||||
|
||||
#include "cbase.h"
|
||||
#include "bone_accessor.h"
|
||||
|
||||
|
||||
#if defined( CLIENT_DLL ) && defined( _DEBUG )
|
||||
|
||||
void CBoneAccessor::SanityCheckBone( int iBone, bool bReadable ) const
|
||||
{
|
||||
if ( m_pAnimating )
|
||||
{
|
||||
CStudioHdr *pHdr = m_pAnimating->GetModelPtr();
|
||||
if ( pHdr )
|
||||
{
|
||||
mstudiobone_t *pBone = pHdr->pBone( iBone );
|
||||
if ( bReadable )
|
||||
{
|
||||
AssertOnce( pBone->flags & m_ReadableBones );
|
||||
}
|
||||
else
|
||||
{
|
||||
AssertOnce( pBone->flags & m_WritableBones );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user