don't warn about SetState(0) (spams when we havn't loaded, or when using

Quad)
This commit is contained in:
Glenn Maynard
2005-07-05 05:30:00 +00:00
parent 95bc380261
commit 12b5a43ca4
+3 -1
View File
@@ -687,7 +687,9 @@ void Sprite::SetState( int iNewState )
// This assert will likely trigger if the "missing" theme element graphic
// is loaded in place of a multi-frame sprite. We want to know about these
// problems in debug builds, but they're not fatal.
if( iNewState < 0 || iNewState >= (int)m_States.size() )
//
// Never warn about setting state 0.
if( iNewState != 0 && (iNewState < 0 || iNewState >= (int)m_States.size()) )
{
// Don't warn about number of states in "_blank".
if( !m_pTexture || m_pTexture->GetID().filename.Find("_blank") == -1 )