From 29936c8a2d0f43241ff2810e7efcb941fc03e60b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 28 May 2008 00:53:42 +0000 Subject: [PATCH] Don't respond to players joining by catching GB_START; other code can cause a join, too. Watch the Message_PlayerJoined message instead. --- stepmania/src/ScreenSelect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/ScreenSelect.cpp b/stepmania/src/ScreenSelect.cpp index cf78cadafb..6a6bb798e8 100644 --- a/stepmania/src/ScreenSelect.cpp +++ b/stepmania/src/ScreenSelect.cpp @@ -28,6 +28,7 @@ void ScreenSelect::Init() split( UPDATE_ON_MESSAGE, ",", m_asSubscribedMessages ); for( unsigned i = 0; i < m_asSubscribedMessages.size(); ++i ) MESSAGEMAN->Subscribe( this, m_asSubscribedMessages[i] ); + this->SubscribeToMessage( Message_PlayerJoined ); // // Load choices @@ -118,8 +119,6 @@ void ScreenSelect::Input( const InputEventPlus &input ) if( GAMESTATE->GetNumSidesJoined() > 1 ) SCREENMAN->PlayStartSound(); - this->UpdateSelectableChoices(); - if( !ALLOW_DISABLED_PLAYER_INPUT ) return; // don't let the screen handle the MENU_START press }