Move CurStageStats and vPlayedStageState out of GAMESTATE. Having
GameState.h depend on StageStats.h is too inconvenient.
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
#include "SongManager.h"
|
||||
#include "RageUtil.h"
|
||||
|
||||
StageStats g_CurStageStats;
|
||||
vector<StageStats> g_vPlayedStageStats;
|
||||
|
||||
StageStats::StageStats()
|
||||
{
|
||||
playMode = PLAY_MODE_INVALID;
|
||||
@@ -216,7 +219,7 @@ bool StageStats::AllFailed() const
|
||||
{
|
||||
for( int pn=0; pn<NUM_PLAYERS; pn++ )
|
||||
if( GAMESTATE->IsPlayerEnabled(PlayerNumber(pn)) )
|
||||
if( !GAMESTATE->m_CurStageStats.bFailed[pn] )
|
||||
if( !bFailed[pn] )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user