save scores in event mode when no profile is enabled, to avoid confusion
This commit is contained in:
@@ -388,15 +388,14 @@ void ProfileManager::AddStepsScore( const Song* pSong, const Steps* pSteps, Play
|
|||||||
iMachineIndexOut = -1;
|
iMachineIndexOut = -1;
|
||||||
|
|
||||||
// In event mode, set the score's name immediately to the Profile's last
|
// 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
|
// used name. If no profile last used name exists, use "EVNT".
|
||||||
// score to the player or machine profile.
|
|
||||||
if( PREFSMAN->m_bEventMode )
|
if( PREFSMAN->m_bEventMode )
|
||||||
{
|
{
|
||||||
Profile* pProfile = PROFILEMAN->GetProfile(pn);
|
Profile* pProfile = PROFILEMAN->GetProfile(pn);
|
||||||
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
|
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
|
||||||
hs.sName = pProfile->m_sLastUsedHighScoreName;
|
hs.sName = pProfile->m_sLastUsedHighScoreName;
|
||||||
else
|
else
|
||||||
return; // don't save anything
|
hs.sName = "EVNT";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -453,15 +452,14 @@ void ProfileManager::AddCourseScore( const Course* pCourse, const Trail* pTrail,
|
|||||||
iMachineIndexOut = -1;
|
iMachineIndexOut = -1;
|
||||||
|
|
||||||
// In event mode, set the score's name immediately to the Profile's last
|
// 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
|
// used name. If no profile last used name exists, use "EVNT".
|
||||||
// score to the player or machine profile.
|
|
||||||
if( PREFSMAN->m_bEventMode )
|
if( PREFSMAN->m_bEventMode )
|
||||||
{
|
{
|
||||||
Profile* pProfile = PROFILEMAN->GetProfile(pn);
|
Profile* pProfile = PROFILEMAN->GetProfile(pn);
|
||||||
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
|
if( pProfile && !pProfile->m_sLastUsedHighScoreName.empty() )
|
||||||
hs.sName = pProfile->m_sLastUsedHighScoreName;
|
hs.sName = pProfile->m_sLastUsedHighScoreName;
|
||||||
else
|
else
|
||||||
return; // don't save anything
|
hs.sName = "EVNT";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user