propagate Attack::GetAttackBeats precondition

This commit is contained in:
Devin J. Pohly
2013-11-02 00:58:01 -04:00
parent 4520186722
commit 5d9c3aaa59
+2 -1
View File
@@ -22,6 +22,8 @@ void Attack::GetAttackBeats( const Song *pSong, float &fStartBeat, float &fEndBe
* prevent popping when the attack has note modifers. */
void Attack::GetRealtimeAttackBeats( const Song *pSong, const PlayerState* pPlayerState, float &fStartBeat, float &fEndBeat ) const
{
ASSERT( pSong != NULL );
if( fStartSecond >= 0 )
{
GetAttackBeats( pSong, fStartBeat, fEndBeat );
@@ -29,7 +31,6 @@ void Attack::GetRealtimeAttackBeats( const Song *pSong, const PlayerState* pPlay
}
ASSERT( pPlayerState != NULL );
ASSERT( pSong != NULL );
/* If reasonable, push the attack forward 8 beats so that notes on screen don't change suddenly. */
fStartBeat = min( GAMESTATE->m_Position.m_fSongBeat+8, pPlayerState->m_fLastDrawnBeat );