fix DefaultCpuModifiers not applied if you start in dance and switch to rave

This commit is contained in:
Chris Danford
2004-05-16 20:58:59 +00:00
parent e1617a3104
commit a20cc8b1f4
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -54,11 +54,11 @@ PlayerNumber GetNextEnabledPlayer( PlayerNumber pn )
return PLAYER_INVALID;
}
PlayerNumber GetNextCpuPlayer( PlayerNumber pn )
PlayerNumber GetNextPotentialCpuPlayer( PlayerNumber pn )
{
for( PlayerNumber p=(PlayerNumber)(pn+1); p<NUM_PLAYERS; ((int&)p)++ )
{
if( GAMESTATE->IsCpuPlayer(p) )
if( !GAMESTATE->IsHumanPlayer(p) )
return p;
}
return PLAYER_INVALID;