o/~ const safety o/~

This commit is contained in:
Glenn Maynard
2002-08-22 23:03:39 +00:00
parent 48b90d9985
commit b4717afc2e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ void Player::Load( PlayerNumber pn, NoteData* pNoteData, LifeMeter* pLM, ScoreDi
m_pLifeMeter = pLM;
m_pScore = pScore;
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
// init scoring
NoteDataWithScoring::Init();
+2 -2
View File
@@ -438,7 +438,7 @@ ScreenGameplay::ScreenGameplay()
// Get the current StyleDef definition (used below)
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
for( p=0; p<NUM_PLAYERS; p++ )
{
@@ -685,7 +685,7 @@ void ScreenGameplay::LoadNextSong( bool bFirstLoad )
NoteData originalNoteData;
GAMESTATE->m_pCurNotes[p]->GetNoteData( &originalNoteData );
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
NoteData newNoteData;
pStyleDef->GetTransformedNoteDataForStyle( (PlayerNumber)p, &originalNoteData, &newNoteData );