From d78f734ec5301a90c85b9a6858f1299fc6aa33c4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 30 Aug 2004 23:59:02 +0000 Subject: [PATCH] be careful not to adjust or save profile stats/options during jukebox --- stepmania/src/GameState.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 8c008e20e8..2268ce3e4c 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -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