From 5ff010ee4e1f12bfcb9eb9a318b03e65226f9d91 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 4 Sep 2003 21:24:50 +0000 Subject: [PATCH] Added option to not save songs --- stepmania/src/ScreenEvaluation.cpp | 2 +- stepmania/src/ScreenPlayerOptions.cpp | 6 ++- stepmania/src/SongOptions.cpp | 1 + stepmania/src/SongOptions.h | 2 +- stepmania/src/StepMania.dsp | 62 +++++++++++++-------------- 5 files changed, 39 insertions(+), 34 deletions(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index d79f10d7f1..cbc90021e6 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -167,7 +167,7 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName, Type type ) : Screen(sCl { for( int p=0; pIsHumanPlayer(p) ) + if( GAMESTATE->IsHumanPlayer(p) && GAMESTATE->m_SongOptions.m_bSaveScore ) { GAMESTATE->m_pCurNotes[p]->AddScore( (PlayerNumber)p, grade[p], stageStats.iScore[p] + stageStats.iBonus[p], bNewRecord[p] ); diff --git a/stepmania/src/ScreenPlayerOptions.cpp b/stepmania/src/ScreenPlayerOptions.cpp index 5b40317478..08eb690f9d 100644 --- a/stepmania/src/ScreenPlayerOptions.cpp +++ b/stepmania/src/ScreenPlayerOptions.cpp @@ -49,6 +49,7 @@ enum { SO_ASSIST, SO_RATE, SO_AUTOSYNC, + SO_SAVE, NUM_PLAYER_OPTIONS_LINES }; OptionRow g_PlayerOptionsLines[NUM_PLAYER_OPTIONS_LINES] = { @@ -71,7 +72,8 @@ OptionRow g_PlayerOptionsLines[NUM_PLAYER_OPTIONS_LINES] = { OptionRow( "Fail", true, "ARCADE","END OF SONG","OFF" ), OptionRow( "Assist\nTick", true, "OFF", "ON" ), OptionRow( "Rate", true, "0.3x","0.4x","0.5x","0.6x","0.7x","0.8x","0.9x","1.0x","1.1x","1.2x","1.3x","1.4x","1.5x","1.6x","1.7x","1.8x","1.9x","2.0x" ), - OptionRow( "Auto\nAdjust", true, "OFF", "ON" ), + OptionRow( "Auto\nAdjust", true, "OFF", "ON" ), + OptionRow( "Save\nScores", true, "OFF", "ON" ), }; static const PlayerOptions::Effect ChoosableEffects[] = @@ -302,6 +304,7 @@ void ScreenPlayerOptions::ImportOptions() m_iSelectedOption[0][SO_FAIL] = so.m_FailType; m_iSelectedOption[0][SO_ASSIST] = so.m_bAssistTick; m_iSelectedOption[0][SO_AUTOSYNC] = so.m_bAutoSync; + m_iSelectedOption[0][SO_SAVE] = so.m_bSaveScore; m_iSelectedOption[0][SO_RATE] = 7; // in case we don't match below for( i=0; i