input of disabled players should be blocked
This commit is contained in:
@@ -2463,6 +2463,7 @@ ShowMeter=0
|
|||||||
FeetPerDifficulty=0
|
FeetPerDifficulty=0
|
||||||
|
|
||||||
[ScreenWithMenuElements]
|
[ScreenWithMenuElements]
|
||||||
|
AllowDisabledPlayerInput=0
|
||||||
HeaderX=SCREEN_CENTER_X
|
HeaderX=SCREEN_CENTER_X
|
||||||
HeaderY=SCREEN_TOP+22
|
HeaderY=SCREEN_TOP+22
|
||||||
HeaderOnCommand=draworder,95;addx,SCREEN_WIDTH;spring,0.5;addx,-SCREEN_WIDTH
|
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
|
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() )
|
if( IsTransitioning() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user