Make transform attacks obey Attack::fSecsRemaining.

Fix off-by-one error causing phantom "missed notes".
This commit is contained in:
Glenn Maynard
2003-10-24 22:48:21 +00:00
parent b04d4f5f21
commit 8eb90e2a99
4 changed files with 51 additions and 33 deletions
+5
View File
@@ -507,6 +507,8 @@ void NoteDataUtil::Wide( NoteData &in, float fStartBeat, float fEndBeat )
in.ConvertHoldNotesTo4s();
/* Start on an even beat. */
fStartBeat = froundf( fStartBeat, 2 );
int first_row = 0;
if( fStartBeat != -1 )
@@ -578,6 +580,9 @@ void NoteDataUtil::InsertIntelligentTaps( NoteData &in, float fBeatInterval, flo
in.ConvertHoldNotesTo4s();
/* Start on an integral beat. */
fStartBeat = roundf( fStartBeat );
// Insert a beat in the middle of every fBeatInterval.
int first_row = 0;