don't accept CODE_CANCEL_ALL_PLAYER_OPTIONS on disabled

players
This commit is contained in:
Glenn Maynard
2004-04-02 00:54:26 +00:00
parent de93c1659e
commit 47e7f08614
+1 -1
View File
@@ -120,7 +120,7 @@ void ScreenPlayerOptions::Input( const DeviceInput& DeviceI, const InputEventTyp
PlayerNumber pn = StyleI.player;
if( CodeDetector::EnteredCode(GameI.controller,CodeDetector::CODE_CANCEL_ALL_PLAYER_OPTIONS) )
if( GAMESTATE->IsHumanPlayer(StyleI.player) && CodeDetector::EnteredCode(GameI.controller,CodeDetector::CODE_CANCEL_ALL_PLAYER_OPTIONS) )
{
SOUND->PlayOnce( THEME->GetPathToS("ScreenPlayerOptions cancel all") );