experimental: AutoJoin, join players immediately (or as soon as possible) when enough coins are inserted
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user