don't warn about SetState(0) (spams when we havn't loaded, or when using
Quad)
This commit is contained in:
@@ -687,7 +687,9 @@ void Sprite::SetState( int iNewState )
|
|||||||
// This assert will likely trigger if the "missing" theme element graphic
|
// 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
|
// is loaded in place of a multi-frame sprite. We want to know about these
|
||||||
// problems in debug builds, but they're not fatal.
|
// 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".
|
// Don't warn about number of states in "_blank".
|
||||||
if( !m_pTexture || m_pTexture->GetID().filename.Find("_blank") == -1 )
|
if( !m_pTexture || m_pTexture->GetID().filename.Find("_blank") == -1 )
|
||||||
|
|||||||
Reference in New Issue
Block a user