From 94f87f9b581d6a3ea96238eafdff9a9fb695edb7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 23 Feb 2005 04:46:05 +0000 Subject: [PATCH] simplify --- stepmania/src/GameState.cpp | 2 ++ stepmania/src/ScreenGameplay.cpp | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 76f552c662..197ae73914 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -406,6 +406,8 @@ void GameState::BeginStage() * have, for some reason, gone from gameplay to evaluation straight back to gameplay.) */ FinishStage(); + GAMESTATE->ResetStageStatistics(); + m_iNumStagesOfThisSong = GetNumStagesForCurrentSong(); ASSERT( m_iNumStagesOfThisSong != -1 ); } diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index c21bb09e7b..4b150b7c81 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -146,7 +146,8 @@ void ScreenGameplay::Init() GAMESTATE->SaveCurrentSettingsToProfile(pn); } - GAMESTATE->ResetStageStatistics(); + /* Called once per stage (single song or single course). */ + GAMESTATE->BeginStage(); @@ -192,9 +193,6 @@ void ScreenGameplay::Init() FOREACH_EnabledPlayer(p) PROFILEMAN->IncrementCoursePlayCount( GAMESTATE->m_pCurCourse, GAMESTATE->m_pCurTrail[p], p ); - /* Called once per stage (single song or single course). */ - GAMESTATE->BeginStage(); - STATSMAN->m_CurStageStats.playMode = GAMESTATE->m_PlayMode; STATSMAN->m_CurStageStats.pStyle = GAMESTATE->m_pCurStyle;