From c419567b23e4d82dfe267c0d6c83d0d7f97aa888 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 12 Sep 2006 23:57:56 +0000 Subject: [PATCH] simplify --- stepmania/src/Player.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 16d22acc35..f12fbfdabb 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -705,9 +705,6 @@ void Player::Update( float fDeltaTime ) } } - // TODO: Remove use of PlayerNumber. - PlayerNumber pn = m_pPlayerState->m_PlayerNumber; - { // Why was this originally "BeatToNoteRowNotRounded"? It should be rounded. -Chris /* We want to send the crossed row message exactly when we cross the row--not @@ -717,7 +714,7 @@ void Player::Update( float fDeltaTime ) if( iRowNow >= 0 ) { // for each index we crossed since the last update - if( GAMESTATE->IsPlayerEnabled(pn) ) + if( GAMESTATE->IsPlayerEnabled(m_pPlayerState) ) FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( m_NoteData, r, m_iRowLastCrossed, iRowNow+1 ) CrossedRow( r, now ); m_iRowLastCrossed = iRowNow+1; @@ -733,7 +730,7 @@ void Player::Update( float fDeltaTime ) if( iRowNow >= 0 ) { // for each index we crossed since the last update - if( GAMESTATE->IsPlayerEnabled(pn) ) + if( GAMESTATE->IsPlayerEnabled(m_pPlayerState) ) FOREACH_NONEMPTY_ROW_ALL_TRACKS_RANGE( m_NoteData, r, m_iMineRowLastCrossed, iRowNow+1 ) CrossedMineRow( r, now ); m_iMineRowLastCrossed = iRowNow+1;