IsHumanPlayer( PLAYER_INVALID ) always false, so we can

do IsHumanPlayer(input.pn) without an extra check
This commit is contained in:
Glenn Maynard
2006-09-14 20:26:17 +00:00
parent 1d3a66e669
commit c559ff69b6
+3
View File
@@ -886,6 +886,9 @@ bool GameState::PlayerUsingBothSides() const
bool GameState::IsHumanPlayer( PlayerNumber pn ) const
{
if( pn == PLAYER_INVALID )
return false;
if( m_pCurStyle == NULL ) // no style chosen
{
if( PlayersCanJoin() )