From 76a85e0752739c7013e1a99aa6a691d096b8eaca Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 5 Dec 2003 20:31:06 +0000 Subject: [PATCH] debug --- stepmania/src/Attack.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Attack.cpp b/stepmania/src/Attack.cpp index 45a292794a..a2506552ff 100644 --- a/stepmania/src/Attack.cpp +++ b/stepmania/src/Attack.cpp @@ -1,15 +1,18 @@ #include "global.h" #include "Attack.h" #include "GameState.h" +#include "RageUtil.h" #include "song.h" void Attack::GetAttackBeats( const Song *song, PlayerNumber pn, float &fStartBeat, float &fEndBeat ) const { if( fStartSecond >= 0 ) { + CHECKPOINT; fStartBeat = song->GetBeatFromElapsedTime( fStartSecond ); fEndBeat = song->GetBeatFromElapsedTime( fStartSecond+fSecsRemaining ); } else { + CHECKPOINT; /* If fStartSecond < 0, then the attack starts right off the screen; this requires * that a song actually be playing. Pre-queued course attacks must always have * fStartSecond >= 0. */ @@ -21,5 +24,5 @@ void Attack::GetAttackBeats( const Song *song, PlayerNumber pn, float &fStartBea GAMESTATE->GetUndisplayedBeats( pn, fSecsRemaining, fStartBeat, fEndBeat ); } - ASSERT( fEndBeat >= fStartBeat ); + RAGE_ASSERT_M( fEndBeat >= fStartBeat, ssprintf("%f >= %f", fEndBeat, fStartBeat) ); }