Move CurStageStats and vPlayedStageState out of GAMESTATE. Having

GameState.h depend on StageStats.h is too inconvenient.
This commit is contained in:
Glenn Maynard
2003-12-23 00:26:00 +00:00
parent ecd5fa36e0
commit 9170e91bcc
19 changed files with 165 additions and 140 deletions
+4 -1
View File
@@ -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;
}