be careful not to adjust or save profile stats/options during jukebox
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user