Non-master players shouldn't quit the soccer setup screen

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14113 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
deveee 2013-09-20 07:43:01 +00:00
parent f5aaeeb14e
commit 6baf56ca8c

View File

@ -219,11 +219,11 @@ GUIEngine::EventPropagation SoccerSetupScreen::filterActions( PlayerAction acti
} }
case PA_MENU_CANCEL: case PA_MENU_CANCEL:
{ {
if (playerId != PLAYER_ID_GAME_MASTER) result = EVENT_BLOCK;
if (!bt_continue->isFocusedForPlayer(PLAYER_ID_GAME_MASTER)) if (!bt_continue->isFocusedForPlayer(PLAYER_ID_GAME_MASTER))
return result; return result;
// Un-confirm team selection // Un-confirm team selection
// TODO: shouldn't trigger quitting the screen...
for(int i=0 ; i < nb_players ; i++) for(int i=0 ; i < nb_players ; i++)
{ {
if(m_kart_view_info[i].local_player_id == playerId) if(m_kart_view_info[i].local_player_id == playerId)