seed and course change in GameState::FinishStage

This commit is contained in:
Glenn Maynard
2004-06-04 06:34:52 +00:00
parent 8767d7276f
commit af9a619044
3 changed files with 6 additions and 4 deletions
+6
View File
@@ -636,6 +636,12 @@ void GameState::FinishStage()
m_iNumStagesOfThisSong = 0;
// The round has ended; change the seed.
GAMESTATE->m_iRoundSeed = rand();
// We have a new seed; courses change.
SONGMAN->RegenRandomTrailEntries();
//
// Add step totals. Use fRadarActual, since the player might have failed partway
// through the song, in which case we don't want to give credit for the rest of the
-2
View File
@@ -1520,8 +1520,6 @@ void ScreenEvaluation::EndScreen()
FOREACH_PlayerNumber( p )
m_Grades[p].SettleImmediately();
GAMESTATE->m_iRoundSeed = rand();
if( !PREFSMAN->m_bEventMode )
{
switch( m_Type )
-2
View File
@@ -68,8 +68,6 @@ ScreenSelectMusic::ScreenSelectMusic( CString sClassName ) : ScreenWithMenuEleme
LIGHTSMAN->SetLightsMode( LIGHTSMODE_MENU );
SONGMAN->RegenRandomTrailEntries();
m_DisplayMode = GAMESTATE->IsCourseMode() ? DISPLAY_COURSES : DISPLAY_SONGS;
/* Finish any previous stage. It's OK to call this when we havn't played a stage yet.