From b1188a971d70839010f0924b507240903decf141 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 27 Sep 2003 21:49:02 +0000 Subject: [PATCH] fix num of states check --- stepmania/src/DifficultyIcon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stepmania/src/DifficultyIcon.cpp b/stepmania/src/DifficultyIcon.cpp index 1f134dedb5..292438cb28 100644 --- a/stepmania/src/DifficultyIcon.cpp +++ b/stepmania/src/DifficultyIcon.cpp @@ -24,9 +24,10 @@ bool DifficultyIcon::Load( CString sPath ) { Sprite::Load( sPath ); - if( GetNumStates() != 5 || GetNumStates() != 10 ) + int iStates = GetNumStates(); + if( iStates != 5 && iStates != 10 ) if( DISPLAY->IsWindowed() ) - HOOKS->MessageBoxOK( ssprintf("The difficulty icon graphic '%s' must have 5 or 10 frames.", sPath.c_str()) ); + HOOKS->MessageBoxOK( ssprintf("The difficulty icon graphic '%s' must have 5 or 10 frames. It has %d states.", sPath.c_str(), iStates) ); StopAnimating(); return true; }