From 5f58c7e2cfdbde71ffad73ab31252f08c1e68dd8 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Jul 2004 05:21:19 +0000 Subject: [PATCH] save scores in event mode when no profile is enabled, to avoid confusion --- stepmania/src/ProfileManager.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index ee45964d4b..b8977ff659 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -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 {