save scores in event mode when no profile is enabled, to avoid confusion

This commit is contained in:
Glenn Maynard
2004-07-11 05:21:19 +00:00
parent 5e20cb4cf4
commit 5f58c7e2cf
+4 -6
View File
@@ -388,15 +388,14 @@ void ProfileManager::AddStepsScore( const Song* pSong, const Steps* pSteps, Play
iMachineIndexOut = -1;
// In event mode, set the score's name immediately to the Profile's last
// used name. If no profile last used name exists, then don't save the
// score to the player or machine profile.
// used name. If no profile last used name exists, use "EVNT".
if( PREFSMAN->m_bEventMode )
{
Profile* pProfile = PROFILEMAN->GetProfile(pn);
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
hs.sName = pProfile->m_sLastUsedHighScoreName;
else
return; // don't save anything
hs.sName = "EVNT";
}
else
{
@@ -453,15 +452,14 @@ void ProfileManager::AddCourseScore( const Course* pCourse, const Trail* pTrail,
iMachineIndexOut = -1;
// In event mode, set the score's name immediately to the Profile's last
// used name. If no profile last used name exists, then don't save the
// score to the player or machine profile.
// used name. If no profile last used name exists, use "EVNT".
if( PREFSMAN->m_bEventMode )
{
Profile* pProfile = PROFILEMAN->GetProfile(pn);
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
hs.sName = pProfile->m_sLastUsedHighScoreName;
else
return; // don't save anything
hs.sName = "EVNT";
}
else
{