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
+9
View File
@@ -127,6 +127,15 @@ void ScreenWithMenuElements::BeginScreen()
/* Evaluate FirstUpdateCommand. */
this->PlayCommand( "FirstUpdate" );
/* If AutoJoin is enabled, we may have a credit that couldn't be used to join when
* the coin was inserted due to AllowLateJoin being disabled at the time. Try to
* join players when a new screen starts. */
if( GAMESTATE->m_bAutoJoin.Get() )
{
if( GAMESTATE->JoinPlayers() )
SCREENMAN->PlayStartSound();
}
}
void ScreenWithMenuElements::HandleScreenMessage( const ScreenMessage SM )