From d69d19fc2a9792456145f91518187ba02ea42c4c Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 23 Aug 2003 19:01:35 +0000 Subject: [PATCH] fix crash if hit a mine too early --- stepmania/src/NoteDataUtil.cpp | 24 +++++++++++++++--------- stepmania/src/NoteDataWithScoring.cpp | 3 --- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index 1dd47012ae..80c6b078c2 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -643,8 +643,6 @@ void NoteDataUtil::InsertIntelligentTaps( NoteData &in, float fBeatInterval, flo void NoteDataUtil::Mines( NoteData &in, float fStartBeat, float fEndBeat ) { - int iTapCount = 0; - int first_row = 0; if( fStartBeat != -1 ) first_row = BeatToNoteRow(fStartBeat); @@ -653,14 +651,22 @@ void NoteDataUtil::Mines( NoteData &in, float fStartBeat, float fEndBeat ) if( fEndBeat != -1 ) last_row = BeatToNoteRow(fEndBeat); + // + // Change whole rows at a time to be tap notes. Otherwise, it causes + // major problems for our scoring system. -Chris + // + + int iRowCount = 0; for( int r=first_row; r<=last_row; r++ ) - for( int t=0; t