input of disabled players should be blocked
This commit is contained in:
@@ -2463,6 +2463,7 @@ ShowMeter=0
|
||||
FeetPerDifficulty=0
|
||||
|
||||
[ScreenWithMenuElements]
|
||||
AllowDisabledPlayerInput=0
|
||||
HeaderX=SCREEN_CENTER_X
|
||||
HeaderY=SCREEN_TOP+22
|
||||
HeaderOnCommand=draworder,95;addx,SCREEN_WIDTH;spring,0.5;addx,-SCREEN_WIDTH
|
||||
|
||||
@@ -168,6 +168,10 @@ void ScreenSelect::Input( const DeviceInput& DeviceI, const InputEventType type,
|
||||
return; // don't let the screen handle the MENU_START press
|
||||
}
|
||||
|
||||
// block input of disabled players
|
||||
if( !ALLOW_DISABLED_PLAYER_INPUT && !GAMESTATE->IsPlayerEnabled(MenuI.player) )
|
||||
return;
|
||||
|
||||
if( IsTransitioning() )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user