experimental: AutoJoin, join players immediately (or as soon as possible) when enough coins are inserted

This commit is contained in:
Glenn Maynard
2008-05-27 20:51:18 +00:00
parent 0bd98720fe
commit ba6a4c4feb
4 changed files with 35 additions and 1 deletions
+7
View File
@@ -1198,6 +1198,13 @@ void StepMania::InsertCoin( int iNum, bool bCountInBookkeeping )
else
SCREENMAN->PlayInvalidSound();
/* If AutoJoin and enough coins to join have been inserted, then try to join a player. */
if( GAMESTATE->m_bAutoJoin.Get() )
{
if( GAMESTATE->JoinPlayers() )
SCREENMAN->PlayStartSound();
}
Message msg( "CoinInserted" );
// below params are unused
//msg.SetParam( "Coins", GAMESTATE->m_iCoins );