reset combo in jukebox/demo

This commit is contained in:
Glenn Maynard
2005-03-15 07:01:56 +00:00
parent 8de9688b29
commit 50168320d4
+7
View File
@@ -16,6 +16,8 @@
#include "ThemeManager.h"
#include "Style.h"
#include "PlayerState.h"
#include "ProfileManager.h"
#include "StatsManager.h"
// HACK: This belongs in ScreenDemonstration
#define DIFFICULTIES_TO_SHOW THEME->GetMetric ("ScreenDemonstration","DifficultiesToShow")
@@ -152,6 +154,11 @@ void ScreenJukebox::Init()
if( !GAMESTATE->IsPlayerEnabled(p) )
continue;
/* Reset the combo, in case ComboContinuesBetweenSongs is enabled. */
Profile* pProfile = PROFILEMAN->GetProfile(p);
if( pProfile )
STATSMAN->m_CurStageStats.m_player[p].iCurCombo = 0;
if( GAMESTATE->m_bJukeboxUsesModifiers )
{
GAMESTATE->m_pPlayerState[p]->m_PlayerOptions.Init();