simplify
This commit is contained in:
@@ -406,6 +406,8 @@ void GameState::BeginStage()
|
|||||||
* have, for some reason, gone from gameplay to evaluation straight back to gameplay.) */
|
* have, for some reason, gone from gameplay to evaluation straight back to gameplay.) */
|
||||||
FinishStage();
|
FinishStage();
|
||||||
|
|
||||||
|
GAMESTATE->ResetStageStatistics();
|
||||||
|
|
||||||
m_iNumStagesOfThisSong = GetNumStagesForCurrentSong();
|
m_iNumStagesOfThisSong = GetNumStagesForCurrentSong();
|
||||||
ASSERT( m_iNumStagesOfThisSong != -1 );
|
ASSERT( m_iNumStagesOfThisSong != -1 );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,8 @@ void ScreenGameplay::Init()
|
|||||||
GAMESTATE->SaveCurrentSettingsToProfile(pn);
|
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)
|
FOREACH_EnabledPlayer(p)
|
||||||
PROFILEMAN->IncrementCoursePlayCount( GAMESTATE->m_pCurCourse, GAMESTATE->m_pCurTrail[p], 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.playMode = GAMESTATE->m_PlayMode;
|
||||||
STATSMAN->m_CurStageStats.pStyle = GAMESTATE->m_pCurStyle;
|
STATSMAN->m_CurStageStats.pStyle = GAMESTATE->m_pCurStyle;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user