move IsWindowed check inside of ArchHooks_Win32

This commit is contained in:
Chris Danford
2003-11-15 06:08:13 +00:00
parent c8c4b5ec0b
commit c123681854
10 changed files with 54 additions and 54 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ bool DifficultyIcon::Load( CString sPath )
Sprite::Load( sPath );
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. It has %d states.", sPath.c_str(), iStates) );
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;
}