From 69284c669232c8ad8a557133a9a8ba1b4aad33c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 7 Feb 2005 05:56:43 +0000 Subject: [PATCH] fix mapping cleanup --- stepmania/src/Player.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index cccc472880..51850f56fe 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -847,11 +847,11 @@ void Player::Step( int col, const RageTimer &tm ) // Do game-specific score mapping. const Game* pGame = GAMESTATE->GetCurrentGame(); - if( score == TNS_MARVELOUS ) score = pGame->m_mapMarvelousTo; - if( score == TNS_PERFECT ) score = pGame->m_mapPerfectTo; - if( score == TNS_GREAT ) score = pGame->m_mapGreatTo; - if( score == TNS_GOOD ) score = pGame->m_mapGoodTo; - if( score == TNS_BOO ) score = pGame->m_mapBooTo; + if( score == TNS_MARVELOUS ) score = pGame->m_mapMarvelousTo; + else if( score == TNS_PERFECT ) score = pGame->m_mapPerfectTo; + else if( score == TNS_GREAT ) score = pGame->m_mapGreatTo; + else if( score == TNS_GOOD ) score = pGame->m_mapGoodTo; + else if( score == TNS_BOO ) score = pGame->m_mapBooTo; @@ -864,7 +864,7 @@ void Player::Step( int col, const RageTimer &tm ) m_pPlayerStageStats->iTotalError += ms_error; } - if( score==TNS_MARVELOUS && !GAMESTATE->ShowMarvelous()) + if( score == TNS_MARVELOUS && !GAMESTATE->ShowMarvelous() ) score = TNS_PERFECT; //LOG->Trace("XXX: %i col %i, at %f, music at %f, step was at %f, off by %f",