mvoe logic to StageStats::AllFailed

This commit is contained in:
Glenn Maynard
2003-11-03 23:55:58 +00:00
parent e49678e956
commit cdd1f885bf
3 changed files with 11 additions and 5 deletions
+9
View File
@@ -145,6 +145,15 @@ bool StageStats::OnePassed() const
return false;
}
bool StageStats::AllFailed() const
{
for( int pn=0; pn<NUM_PLAYERS; pn++ )
if( GAMESTATE->IsPlayerEnabled(PlayerNumber(pn)) )
if( !GAMESTATE->m_CurStageStats.bFailed[pn] )
return false;
return true;
}
float StageStats::GetPercentDancePoints( PlayerNumber pn ) const
{
if( iPossibleDancePoints[pn] == 0 )