move global StageStats into a singleton
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "ProfileManager.h"
|
||||
#include "MenuTimer.h"
|
||||
#include "LightsManager.h"
|
||||
#include "StageStats.h"
|
||||
#include "StatsManager.h"
|
||||
#include "StepsUtil.h"
|
||||
#include "Foreach.h"
|
||||
#include "Style.h"
|
||||
@@ -1099,9 +1099,9 @@ void ScreenSelectMusic::MenuStart( PlayerNumber pn )
|
||||
bool bIsRepeat = false;
|
||||
int i = 0;
|
||||
if( PREFSMAN->m_bEventMode )
|
||||
i = max( 0, int(g_vPlayedStageStats.size())-5 );
|
||||
for( ; i < (int)g_vPlayedStageStats.size(); ++i )
|
||||
if( g_vPlayedStageStats[i].vpSongs.back() == m_MusicWheel.GetSelectedSong() )
|
||||
i = max( 0, int(STATSMAN->m_vPlayedStageStats.size())-5 );
|
||||
for( ; i < (int)STATSMAN->m_vPlayedStageStats.size(); ++i )
|
||||
if( STATSMAN->m_vPlayedStageStats[i].vpSongs.back() == m_MusicWheel.GetSelectedSong() )
|
||||
bIsRepeat = true;
|
||||
|
||||
/* Don't complain about repeats if the user didn't get to pick. */
|
||||
|
||||
Reference in New Issue
Block a user