improve output
This commit is contained in:
@@ -47,6 +47,7 @@ CombinedLifeMeterTug::CombinedLifeMeterTug()
|
|||||||
Character* pCharacter = GAMESTATE->m_pCurCharacters[p];
|
Character* pCharacter = GAMESTATE->m_pCurCharacters[p];
|
||||||
ASSERT( pCharacter );
|
ASSERT( pCharacter );
|
||||||
|
|
||||||
|
m_Head[p].SetName( "CharacterHead" );
|
||||||
m_Head[p].LoadFromCharacter( pCharacter );
|
m_Head[p].LoadFromCharacter( pCharacter );
|
||||||
m_Head[p].SetXY( FACE_X[p], FACE_Y[p] );
|
m_Head[p].SetXY( FACE_X[p], FACE_Y[p] );
|
||||||
this->AddChild( &m_Head[p] );
|
this->AddChild( &m_Head[p] );
|
||||||
|
|||||||
@@ -590,11 +590,11 @@ void Sprite::SetState( int iNewState )
|
|||||||
{
|
{
|
||||||
CString sError;
|
CString sError;
|
||||||
if( m_pTexture )
|
if( m_pTexture )
|
||||||
sError = ssprintf("The Sprite '%s' tried to set state index %d, but it has only %u states",
|
sError = ssprintf("The Sprite '%s' (\"%s\") tried to set state index %d, but it has only %u states",
|
||||||
m_pTexture->GetID().filename.c_str(), iNewState, unsigned(m_States.size()));
|
m_pTexture->GetID().filename.c_str(), this->m_sName.c_str(), iNewState, unsigned(m_States.size()));
|
||||||
else
|
else
|
||||||
sError = ssprintf("A Sprite tried to set state index %d but no texture is loaded.",
|
sError = ssprintf("A Sprite (\"%s\") tried to set state index %d but no texture is loaded.",
|
||||||
iNewState );
|
this->m_sName.c_str(), iNewState );
|
||||||
HOOKS->MessageBoxOK( sError );
|
HOOKS->MessageBoxOK( sError );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user