Reset the round seed so that the players get new shuffle patterns if they Back out of gameplay and play again

This commit is contained in:
Chris Danford
2005-03-11 07:22:37 +00:00
parent fbd9c73df3
commit 197e4a19cd
+4 -3
View File
@@ -465,9 +465,6 @@ void GameState::FinishStage()
m_iNumStagesOfThisSong = 0;
// The round has ended; change the seed.
GAMESTATE->m_iRoundSeed = rand();
if( m_bDemonstrationOrJukebox )
return;
@@ -647,6 +644,10 @@ void GameState::ResetStageStatistics()
m_vLastPerDifficultyAwards[p].clear();
m_vLastPeakComboAwards[p].clear();
}
// Reset the round seed. Do this here and not in FinishStage so that players
// get new shuffle patterns if they Back out of gameplay and play again.
GAMESTATE->m_iRoundSeed = rand();
}
void GameState::UpdateSongPosition( float fPositionSeconds, const TimingData &timing, const RageTimer &timestamp )