From a9985795a4617cf78fca67929e54a290d07087bf Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 2 Jan 2004 04:08:25 +0000 Subject: [PATCH] make AddMines deterministic --- stepmania/src/NoteDataUtil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index 0e3f18518b..ab9c6e2835 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -768,6 +768,7 @@ void NoteDataUtil::AddMines( NoteData &in, float fStartBeat, float fEndBeat ) // int iRowCount = 0; + int iPlaceEveryRows = 6; for( int r=first_row; r<=last_row; r++ ) { if( !in.IsRowEmpty(r) ) @@ -775,13 +776,17 @@ void NoteDataUtil::AddMines( NoteData &in, float fStartBeat, float fEndBeat ) iRowCount++; // place every 6 or 7 rows - if( (iRowCount>=7) || (iRowCount>=6 && rand()%2) ) + if( iRowCount>=iPlaceEveryRows ) { for( int t=0; t