Player-side Autoplay modifier (allows one player to play normally, while the other is in autoplay mode)

This commit is contained in:
Mike Hawkins
2008-07-08 00:56:24 +00:00
parent d1f939f486
commit 3fc4f1ea94
8 changed files with 44 additions and 14 deletions
+5 -2
View File
@@ -1113,7 +1113,10 @@ void ScreenGameplay::LoadNextSong()
}
else
{
pi->GetPlayerState()->m_PlayerController = GamePreferences::m_AutoPlay;
if( pi->GetPlayerState()->m_PlayerOptions.GetCurrent().m_fPlayerAutoPlay != 0 )
pi->GetPlayerState()->m_PlayerController = PC_AUTOPLAY;
else
pi->GetPlayerState()->m_PlayerController = GamePreferences::m_AutoPlay;
}
}
}
@@ -2238,7 +2241,7 @@ void ScreenGameplay::Input( const InputEventPlus &input )
{
AbortGiveUp( true );
if( GamePreferences::m_AutoPlay == PC_HUMAN )
if( GamePreferences::m_AutoPlay == PC_HUMAN && GAMESTATE->m_pPlayerState[PLAYER_1]->m_PlayerOptions.GetCurrent().m_fPlayerAutoPlay == 0 )
{
PlayerInfo& pi = GetPlayerInfoForInput( input );