only persist a subset of options that players would want to use for every song. When players turn on tricky options for the last song, they often forget to turn all of the tricky stuff off again in the next game.

This commit is contained in:
Chris Danford
2004-08-29 09:19:11 +00:00
parent 87579e8a57
commit 8dcd4d93bb
3 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ void GameState::SaveCurrentSettingsToProfile( PlayerNumber pn )
Profile* pProfile = PROFILEMAN->GetProfile(pn);
pProfile->m_bUsingProfileDefaultModifiers = true;
pProfile->m_sDefaultModifiers = m_PlayerOptions[pn].GetString();
pProfile->m_sDefaultModifiers = m_PlayerOptions[pn].GetSavedPrefsString();
if( IsSongSort(m_SortOrder) )
pProfile->m_SortOrder = m_SortOrder;
if( m_PreferredDifficulty[pn] != DIFFICULTY_INVALID )
+14
View File
@@ -636,6 +636,20 @@ bool PlayerOptions::ContainsTransformOrTurn() const
return false;
}
CString PlayerOptions::GetSavedPrefsString() const
{
PlayerOptions po_prefs;
#define SAVE(x) po_prefs.x = this->x;
SAVE( m_fTimeSpacing );
SAVE( m_fScrollSpeed );
SAVE( m_fScrollBPM );
SAVE( m_fScrolls[SCROLL_REVERSE] );
SAVE( m_fPerspectiveTilt );
SAVE( m_sNoteSkin );
#undef SAVE
return po_prefs.GetString();
}
/*
* (c) 2001-2004 Chris Danford, Glenn Maynard
* All rights reserved.
+1
View File
@@ -16,6 +16,7 @@ struct PlayerOptions
void Init();
void Approach( const PlayerOptions& other, float fDeltaSeconds );
CString GetString() const;
CString GetSavedPrefsString() const; // only the basic options that players would want for every song
static CString ThemeMod( CString sOneMod );
CString GetThemedString() const;
void FromString( CString sOptions );