clean this up
don't compare booleans to "true" or "false"; it's redundant (this is still a hack, but I don't feel like puzzling out the right way to do this)
This commit is contained in:
@@ -164,28 +164,21 @@ void Player::Load( PlayerNumber pn, NoteData* pNoteData, LifeMeter* pLM, ScoreDi
|
|||||||
|
|
||||||
|
|
||||||
// If solo-single is enabled..
|
// If solo-single is enabled..
|
||||||
if( PREFSMAN->m_bSoloSingle == true && GAMESTATE->GetCurrentStyleDef()->m_NotesType == STYLE_DANCE_SINGLE && GAMESTATE->GetNumSidesJoined() == 1 )
|
if( PREFSMAN->m_bSoloSingle &&
|
||||||
{
|
GAMESTATE->GetCurrentStyleDef()->m_NotesType == STYLE_DANCE_SINGLE &&
|
||||||
int iJoinedSide;
|
GAMESTATE->GetNumSidesJoined() == 1 &&
|
||||||
for( unsigned u=0;u<NUM_PLAYERS;u++)
|
GAMESTATE->IsPlayerEnabled(0) )
|
||||||
if( GAMESTATE->IsPlayerEnabled(u) == true )
|
|
||||||
iJoinedSide = u;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if( iJoinedSide == 0 )
|
|
||||||
{
|
{
|
||||||
m_GhostArrowRow.SetX( 165 );
|
m_GhostArrowRow.SetX( 165 );
|
||||||
m_GrayArrowRow.SetX( 165 );
|
m_GrayArrowRow.SetX( 165 );
|
||||||
m_NoteField.SetX( 165 );
|
m_NoteField.SetX( 165 );
|
||||||
m_Combo.SetX( 165 );
|
m_Combo.SetX( 165 );
|
||||||
|
|
||||||
for( c=0; c<pStyleDef->m_iColsPerPlayer; c++ )
|
for( c=0; c<pStyleDef->m_iColsPerPlayer; c++ )
|
||||||
{
|
|
||||||
m_HoldJudgment[c].SetX( (float)pStyleDef->m_ColumnInfo[pn][c].fXOffset + m_GhostArrowRow.GetX());
|
m_HoldJudgment[c].SetX( (float)pStyleDef->m_ColumnInfo[pn][c].fXOffset + m_GhostArrowRow.GetX());
|
||||||
}
|
|
||||||
m_Judgment.SetX( 165 );
|
m_Judgment.SetX( 165 );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
m_GhostArrowRow.SetY( bReverse ? SCREEN_BOTTOM-GRAY_ARROWS_Y : SCREEN_TOP+GRAY_ARROWS_Y );
|
m_GhostArrowRow.SetY( bReverse ? SCREEN_BOTTOM-GRAY_ARROWS_Y : SCREEN_TOP+GRAY_ARROWS_Y );
|
||||||
|
|||||||
Reference in New Issue
Block a user