add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3734 additions and 1062458 deletions

View File

@@ -285,9 +285,9 @@ void CSprite::ComputeWorldSpaceSurroundingBox( Vector *pVecWorldMins, Vector *pV
//-----------------------------------------------------------------------------
void CSprite::SetModel( const char *szModelName )
{
int index_ = modelinfo->GetModelIndex( szModelName );
const model_t *pModel = modelinfo->GetModel( index_ );
if ( pModel && modelinfo->GetModelType( pModel ) != mod_sprite )
int index = modelinfo->GetModelIndex( szModelName );
const model_t *model = modelinfo->GetModel( index );
if ( model && modelinfo->GetModelType( model ) != mod_sprite )
{
Msg( "Setting CSprite to non-sprite model %s\n", szModelName?szModelName:"NULL" );
}
@@ -677,10 +677,7 @@ void CSprite::GetRenderBounds( Vector &vecMins, Vector &vecMaxs )
#if 0
// Visualize the bounds
if ( debugoverlay )
{
debugoverlay->AddBoxOverlay( GetRenderOrigin(), vecMins, vecMaxs, GetRenderAngles(), 255, 255, 255, 0, 0.01f );
}
debugoverlay->AddBoxOverlay( GetRenderOrigin(), vecMins, vecMaxs, GetRenderAngles(), 255, 255, 255, 0, 0.01f );
#endif
}