From 74c9d0058a222c2b74de27546bbf2b98d52edc3e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 11 Sep 2005 01:10:48 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenEvaluation.cpp | 5 +++-- stepmania/src/ScreenEvaluation.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenEvaluation.cpp b/stepmania/src/ScreenEvaluation.cpp index 644f187947..0cdab4c57e 100644 --- a/stepmania/src/ScreenEvaluation.cpp +++ b/stepmania/src/ScreenEvaluation.cpp @@ -249,7 +249,7 @@ void ScreenEvaluation::Init() // // update persistent statistics // - StageResults::CommitScores( m_StageStats, m_StageResults, m_Type == summary ); + StageResults::CommitScores( m_StageResults, m_Type == summary ); FOREACH_HumanPlayer( p ) m_StageStats.m_player[p].CalcAwards( p ); @@ -763,10 +763,11 @@ void ScreenEvaluation::Init() void StageResults::CommitScores( - const StageStats &m_StageStats, StageResults out[NUM_PLAYERS], bool bSummary ) { + const StageStats &m_StageStats = STATSMAN->m_CurStageStats; + FOREACH_PlayerNumber( pn ) { out[pn].Init(); diff --git a/stepmania/src/ScreenEvaluation.h b/stepmania/src/ScreenEvaluation.h index 5d5414e523..96d5a25430 100644 --- a/stepmania/src/ScreenEvaluation.h +++ b/stepmania/src/ScreenEvaluation.h @@ -27,7 +27,7 @@ public: HighScore m_HighScore; Grade m_Grade; - static void CommitScores( const StageStats &stageStats, StageResults out[NUM_PLAYERS], bool bSummary ); + static void CommitScores( StageResults out[NUM_PLAYERS], bool bSummary ); }; const int MAX_SONGS_TO_SHOW = 5; // In summary, we show last 3 stages, plus extra stages if passed