From 3edfc9bf2b737d1b5a3852326a30046172536304 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Thu, 5 May 2005 01:08:28 +0000 Subject: [PATCH] Partial revert; I didn't know that dialog code already does logging --- stepmania/src/Sprite.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 6ed0a722f8..8fd2e05366 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -696,12 +696,14 @@ void Sprite::SetState( int iNewState ) // Don't warn about number of states in "_blank". if( !m_pTexture || m_pTexture->GetID().filename.Find("_blank") == -1 ) { + CString sError; if( m_pTexture ) - LOG->Warn("The Sprite '%s' (\"%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(), this->m_sName.c_str(), iNewState, unsigned(m_States.size())); else - LOG->Warn("A Sprite (\"%s\") 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.", this->m_sName.c_str(), iNewState ); + Dialog::OK( sError ); } }