mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
add source-sdk-2013
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user