From b360b4e08b2a6a1632a3a1f2d70a8d36096edd91 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 31 Aug 2003 22:38:06 +0000 Subject: [PATCH] tweak Mines --- stepmania/src/NoteDataUtil.cpp | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index 80c6b078c2..262d7c8586 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -658,15 +658,39 @@ void NoteDataUtil::Mines( NoteData &in, float fStartBeat, float fEndBeat ) int iRowCount = 0; for( int r=first_row; r<=last_row; r++ ) + { if( !in.IsRowEmpty(r) ) { iRowCount++; + // place every 6 or 7 rows - if( (iRowCount%7)==6 || ((iRowCount%7)==5 && rand()%2) ) + if( (iRowCount>=7) || (iRowCount>=6 && rand()%2) ) + { for( int t=0; t