From 488798fef69494d1f015620a1bd3ee48f53c6cc0 Mon Sep 17 00:00:00 2001 From: Bruno Figueiredo Date: Wed, 31 Jul 2002 04:59:49 +0000 Subject: [PATCH] fixed: * Using autoplayer at all results in an 'E' grade. --- stepmania/src/ScreenEvaluation.cpp | 3 +++ stepmania/src/ScreenGameplay.cpp | 4 ++-- stepmania/src/SongManager.cpp | 7 +++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 9c4a3403b5..a9d29cbef6 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -352,6 +352,9 @@ ScreenEvaluation::ScreenEvaluation( bool bSummary ) if( !GAMESTATE->IsPlayerEnabled(p) ) continue; + if( GAMESTATE->m_bUsedAutoPlayer ) + continue; + switch( m_ResultMode ) { case RM_ARCADE_STAGE: diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 48f13e648e..93364affa4 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -122,7 +122,7 @@ ScreenGameplay::ScreenGameplay() - GAMESTATE->m_bUsedAutoPlayer &= PREFSMAN->m_bAutoPlay; + GAMESTATE->m_bUsedAutoPlayer |= PREFSMAN->m_bAutoPlay; m_bChangedOffsetOrBPM = false; @@ -676,7 +676,7 @@ void ScreenGameplay::Input( const DeviceInput& DeviceI, const InputEventType typ { case DIK_F8: PREFSMAN->m_bAutoPlay = !PREFSMAN->m_bAutoPlay; - GAMESTATE->m_bUsedAutoPlayer &= PREFSMAN->m_bAutoPlay; + GAMESTATE->m_bUsedAutoPlayer |= PREFSMAN->m_bAutoPlay; m_textDebug.SetText( ssprintf("Autoplayer %s.", (PREFSMAN->m_bAutoPlay ? "ON" : "OFF")) ); m_textDebug.SetDiffuseColor( D3DXCOLOR(1,1,1,1) ); m_textDebug.StopTweening(); diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index ba9ef72c41..7bf59993dc 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -47,10 +47,9 @@ SongManager::SongManager( void(*callback)() ) SongManager::~SongManager() { - if( !PREFSMAN->m_bAutoPlay ) // BUG FIX: Stats will no longer save if you're in autoplay mode - Andy. - { - SaveStatisticsToDisk(); - } + // BUG FIX: Stats will no longer save if you're in autoplay mode - Andy. + // BUG BUG FIX: if user used autoplay, the evaluation screen already detects this... + SaveStatisticsToDisk(); FreeSongArray(); }