From 197e4a19cd51251090742086f11f783b9e11658b Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 11 Mar 2005 07:22:37 +0000 Subject: [PATCH] Reset the round seed so that the players get new shuffle patterns if they Back out of gameplay and play again --- stepmania/src/GameState.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 7993e72dbc..10413b891a 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -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 ×tamp )