o/~ const safety o/~
This commit is contained in:
@@ -67,7 +67,7 @@ void Player::Load( PlayerNumber pn, NoteData* pNoteData, LifeMeter* pLM, ScoreDi
|
|||||||
m_pLifeMeter = pLM;
|
m_pLifeMeter = pLM;
|
||||||
m_pScore = pScore;
|
m_pScore = pScore;
|
||||||
|
|
||||||
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
||||||
|
|
||||||
// init scoring
|
// init scoring
|
||||||
NoteDataWithScoring::Init();
|
NoteDataWithScoring::Init();
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ ScreenGameplay::ScreenGameplay()
|
|||||||
|
|
||||||
|
|
||||||
// Get the current StyleDef definition (used below)
|
// Get the current StyleDef definition (used below)
|
||||||
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
||||||
|
|
||||||
for( p=0; p<NUM_PLAYERS; p++ )
|
for( p=0; p<NUM_PLAYERS; p++ )
|
||||||
{
|
{
|
||||||
@@ -685,7 +685,7 @@ void ScreenGameplay::LoadNextSong( bool bFirstLoad )
|
|||||||
NoteData originalNoteData;
|
NoteData originalNoteData;
|
||||||
GAMESTATE->m_pCurNotes[p]->GetNoteData( &originalNoteData );
|
GAMESTATE->m_pCurNotes[p]->GetNoteData( &originalNoteData );
|
||||||
|
|
||||||
StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
const StyleDef* pStyleDef = GAMESTATE->GetCurrentStyleDef();
|
||||||
NoteData newNoteData;
|
NoteData newNoteData;
|
||||||
pStyleDef->GetTransformedNoteDataForStyle( (PlayerNumber)p, &originalNoteData, &newNoteData );
|
pStyleDef->GetTransformedNoteDataForStyle( (PlayerNumber)p, &originalNoteData, &newNoteData );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user