Fix Player2's highlight showing in ScreenPlayerOptions when not joined.
This commit is contained in:
@@ -215,8 +215,9 @@ bool GameState::IsPlayable( const ModeChoice& mc )
|
|||||||
|
|
||||||
bool GameState::IsPlayerEnabled( PlayerNumber pn )
|
bool GameState::IsPlayerEnabled( PlayerNumber pn )
|
||||||
{
|
{
|
||||||
if( GAMESTATE->m_bIsOnSystemMenu ) // if no style set (we're in TitleMenu, ConfigInstruments or something)
|
// no longer necessary
|
||||||
return true; // allow input from both sides
|
// if( GAMESTATE->m_bIsOnSystemMenu ) // if no style set (we're in TitleMenu, ConfigInstruments or something)
|
||||||
|
// return true; // allow input from both sides
|
||||||
|
|
||||||
if( m_CurStyle == STYLE_INVALID ) // no style chosen
|
if( m_CurStyle == STYLE_INVALID ) // no style chosen
|
||||||
if( this->m_bPlayersCanJoin )
|
if( this->m_bPlayersCanJoin )
|
||||||
|
|||||||
@@ -434,12 +434,16 @@ void ScreenManager::SetNewScreen( CString sClassName )
|
|||||||
|
|
||||||
/* If this is a system menu, don't let the operator key touch it!
|
/* If this is a system menu, don't let the operator key touch it!
|
||||||
However, if you add an options screen, please include it here -- Miryokuteki */
|
However, if you add an options screen, please include it here -- Miryokuteki */
|
||||||
if( sClassName == "ScreenOptionsMenu" || sClassName == "ScreenMachineOptions" ||
|
if( sClassName == "ScreenOptionsMenu" ||
|
||||||
sClassName == "ScreenOptions" || sClassName == "ScreenInputOptions" ||
|
sClassName == "ScreenMachineOptions" ||
|
||||||
sClassName == "ScreenGraphicOptions" || sClassName == "ScreenGameplayOptions" ||
|
sClassName == "ScreenInputOptions" ||
|
||||||
sClassName == "ScreenMapControllers" || sClassName == "ScreenPlayerOptions" ||
|
sClassName == "ScreenGraphicOptions" ||
|
||||||
sClassName == "ScreenAppearanceOptions" || sClassName == "ScreenEdit" ||
|
sClassName == "ScreenGameplayOptions" ||
|
||||||
sClassName == "ScreenEditMenu" || sClassName == "ScreenSoundOptions")
|
sClassName == "ScreenMapControllers" ||
|
||||||
|
sClassName == "ScreenAppearanceOptions" ||
|
||||||
|
sClassName == "ScreenEdit" ||
|
||||||
|
sClassName == "ScreenEditMenu" ||
|
||||||
|
sClassName == "ScreenSoundOptions" )
|
||||||
GAMESTATE->m_bIsOnSystemMenu = true;
|
GAMESTATE->m_bIsOnSystemMenu = true;
|
||||||
else
|
else
|
||||||
GAMESTATE->m_bIsOnSystemMenu = false;
|
GAMESTATE->m_bIsOnSystemMenu = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user