don't warn about dimensions if texture is "_blank"

This commit is contained in:
Chris Danford
2005-03-21 07:40:23 +00:00
parent 6df73d3839
commit fd94e4f38d
4 changed files with 32 additions and 13 deletions
+4 -1
View File
@@ -19,7 +19,10 @@ bool DifficultyIcon::Load( CString sPath )
{
Sprite::Load( sPath );
int iStates = GetNumStates();
if( iStates != NUM_DIFFICULTIES && iStates != NUM_DIFFICULTIES*2 )
bool bWarn = iStates != NUM_DIFFICULTIES && iStates != NUM_DIFFICULTIES*2;
if( sPath.Find("_blank") != -1 )
bWarn = false;
if( bWarn )
{
CString sError = ssprintf(
"The difficulty icon graphic '%s' must have %d or %d frames. It has %d states.",