Some respect for OOP. (MasterPlayerNumber)

This commit is contained in:
Jason Felds
2011-06-06 20:40:11 -04:00
parent 963cc9d4f1
commit 0a7b9ce170
33 changed files with 106 additions and 94 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ void ScreenSelect::HandleScreenMessage( const ScreenMessage SM )
* same choice, and if so, call ApplyToAll instead.
* TODO: Think of a better way to handle this.
*/
ASSERT( GAMESTATE->m_MasterPlayerNumber != PlayerNumber_Invalid );
int iMastersIndex = this->GetSelectionIndex( GAMESTATE->m_MasterPlayerNumber );
ASSERT( GAMESTATE->GetMasterPlayerNumber() != PlayerNumber_Invalid );
int iMastersIndex = this->GetSelectionIndex( GAMESTATE->GetMasterPlayerNumber() );
bool bAllPlayersChoseTheSame = true;
FOREACH_HumanPlayer( p )
{