overly abstracted

This commit is contained in:
Glenn Maynard
2006-01-16 04:44:29 +00:00
parent 08847b9bb1
commit 67cb967ad3
2 changed files with 1 additions and 8 deletions
+1 -7
View File
@@ -812,17 +812,11 @@ void ScreenOptions::MenuBack( PlayerNumber pn )
Cancel( SM_GoToPrevScreen );
}
bool ScreenOptions::IsOnLastRow( PlayerNumber pn ) const
{
int iCurRow = m_iCurrentRow[pn];
return iCurRow == (int)(m_pRows.size()-1);
}
bool ScreenOptions::AllAreOnLastRow() const
{
FOREACH_HumanPlayer( p )
{
if( !IsOnLastRow(p) )
if( m_iCurrentRow[p] != (int)(m_pRows.size()-1) )
return false;
}
return true;