be careful not to adjust or save profile stats/options during jukebox

This commit is contained in:
Glenn Maynard
2004-08-30 23:59:02 +00:00
parent 41fa32138c
commit d78f734ec5
+7
View File
@@ -317,6 +317,8 @@ void GameState::EndGame()
{
LOG->Trace( "GameState::EndGame" );
if( m_bDemonstrationOrJukebox )
return;
if( m_timeGameStarted.IsZero() || !g_vPlayedStageStats.size() ) // we were in the middle of a game and played at least one song
return;
@@ -369,6 +371,8 @@ void GameState::SaveCurrentSettingsToProfile( PlayerNumber pn )
{
if( !PROFILEMAN->IsUsingProfile(pn) )
return;
if( m_bDemonstrationOrJukebox )
return;
Profile* pProfile = PROFILEMAN->GetProfile(pn);
@@ -617,6 +621,9 @@ void GameState::FinishStage()
// The round has ended; change the seed.
GAMESTATE->m_iRoundSeed = rand();
if( m_bDemonstrationOrJukebox )
return;
//
// Add step totals. Use radarActual, since the player might have failed part way
// through the song, in which case we don't want to give credit for the rest of the