From 767bf0ec821bd75264b961b86312e9226f2acf96 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Tue, 1 Aug 2006 06:51:19 +0000 Subject: [PATCH] Fix off-by-one and simplify. --- stepmania/src/Player.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index d26db73d54..211f58dfb1 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -320,10 +320,10 @@ void Player::Load() m_LastTapNoteScore = TNS_None; - m_iRowLastCrossed = BeatToNoteRowNotRounded( GAMESTATE->m_fSongBeat ) - 1; // why this? - m_iMineRowLastCrossed = BeatToNoteRowNotRounded( GAMESTATE->m_fSongBeat ) - 1; // why this? - m_iRowLastJudged = 0; - m_iMineRowLastJudged = 0; + m_iRowLastCrossed = -1; + m_iMineRowLastCrossed = -1; + m_iRowLastJudged = -1; + m_iMineRowLastJudged = -1; m_JudgedRows.Reset(); // TODO: Remove use of PlayerNumber.