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
+2 -1
View File
@@ -18,6 +18,7 @@
#include "GameState.h"
#include "song.h"
#include "Character.h"
#include "StageStats.h"
#define DC_X( choice ) THEME->GetMetricF("DancingCharacters",ssprintf("2DCharacterXP%d",choice+1))
#define DC_Y( choice ) THEME->GetMetricF("DancingCharacters",ssprintf("2DCharacterYP%d",choice+1))
@@ -332,7 +333,7 @@ void DancingCharacters::DrawPrimitives()
{
if( GAMESTATE->IsPlayerEnabled(p) )
{
bool bFailed = GAMESTATE->m_CurStageStats.bFailed[p];
bool bFailed = g_CurStageStats.bFailed[p];
bool bDanger = m_bDrawDangerLight;
DISPLAY->SetLighting( true );