standard metric for "forceallplayers"

This commit is contained in:
Glenn Maynard
2006-01-15 22:35:25 +00:00
parent 64a633ac9f
commit 2517ced11c
2 changed files with 14 additions and 13 deletions
+8 -6
View File
@@ -19,6 +19,7 @@
#define LINE_NAMES THEME->GetMetric (m_sName,"LineNames")
#define OPTION_MENU_FLAGS THEME->GetMetric (m_sName,"OptionMenuFlags")
#define LINE(sLineName) THEME->GetMetric (m_sName,ssprintf("Line%s",sLineName.c_str()))
#define FORCE_ALL_PLAYERS THEME->GetMetricB(m_sName,"ForceAllPlayers")
REGISTER_SCREEN_CLASS( ScreenOptionsMaster );
@@ -35,6 +36,13 @@ void ScreenOptionsMaster::Init()
split( OPTION_MENU_FLAGS, ";", Flags, true );
InputMode im = INPUTMODE_INDIVIDUAL;
if( FORCE_ALL_PLAYERS )
{
FOREACH_PlayerNumber( pn )
GAMESTATE->m_bSideIsJoined[pn] = true;
GAMESTATE->m_MasterPlayerNumber = PLAYER_1;
}
for( unsigned i = 0; i < Flags.size(); ++i )
{
CString sFlag = Flags[i];
@@ -42,12 +50,6 @@ void ScreenOptionsMaster::Init()
if( sFlag == "together" )
im = INPUTMODE_SHARE_CURSOR;
else if( sFlag == "forceallplayers" )
{
FOREACH_PlayerNumber( pn )
GAMESTATE->m_bSideIsJoined[pn] = true;
GAMESTATE->m_MasterPlayerNumber = PLAYER_1;
}
else if( sFlag == "smnavigation" )
SetNavigation( NAV_THREE_KEY_MENU );
else if( sFlag == "toggle" )