input of disabled players should be blocked

This commit is contained in:
Chris Danford
2005-01-04 11:51:53 +00:00
parent ef8f1da3ab
commit 7285003f1e
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -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
+4
View File
@@ -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;