Skip to content

Commit

Permalink
remove unnecessary extra profile save for deleted machine profile
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 14, 2017
1 parent f051a5f commit eb655c0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/GameState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,21 +748,6 @@ void GameState::FinishStage()
Profile* pProfile = PROFILEMAN->GetProfile(p);
pProfile->m_iCurrentCombo = STATSMAN->m_CurStageStats.m_player[p].m_iCurCombo;
}

if( m_bDemonstrationOrJukebox )
return;

// todo: simplify. profile saving is accomplished in ScreenProfileSave
// now; all this code does differently is save machine profile as well. -aj
if( IsEventMode() )
{
const int iSaveProfileEvery = 3;
if( iOldStageIndex/iSaveProfileEvery < m_iCurrentStageIndex/iSaveProfileEvery )
{
LOG->Trace( "Played %i stages; saving profiles ...", iSaveProfileEvery );
this->SavePlayerProfiles();
}
}
}

void GameState::LoadCurrentSettingsFromProfile( PlayerNumber pn )
Expand Down

0 comments on commit eb655c0

Please sign in to comment.