From 0a85bfd23d89215827c950621fc329adec580bf5 Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Wed, 26 May 2010 00:08:35 -0500 Subject: [PATCH] allow ScoreKeeperRave to be used as a ScoreKeeper. --- src/ScoreKeeper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ScoreKeeper.cpp b/src/ScoreKeeper.cpp index 14cd8779ee..0760d05469 100644 --- a/src/ScoreKeeper.cpp +++ b/src/ScoreKeeper.cpp @@ -13,7 +13,6 @@ ScoreKeeper::ScoreKeeper( PlayerState *pPlayerState, PlayerStageStats *pPlayerSt void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow, TapNoteScore &tnsOut, int &iNumTapsInRowOut ) { - PlayerNumber pn = m_pPlayerState->m_PlayerNumber; int iNum = 0; for( int track = 0; track < nd.GetNumTracks(); ++track ) @@ -29,6 +28,7 @@ void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow, } #include "ScoreKeeperNormal.h" +#include "ScoreKeeperRave.h" #include "ScoreKeeperGuitar.h" #include "ScoreKeeperShared.h" @@ -36,6 +36,8 @@ ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPla { if( sClassName == "ScoreKeeperNormal" ) return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats ); + else if( sClassName == "ScoreKeeperRave" ) + return new ScoreKeeperRave( pPlayerState, pPlayerStageStats ); else if( sClassName == "ScoreKeeperGuitar" ) return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats ); else if( sClassName == "ScoreKeeperShared" )