simplify
This commit is contained in:
@@ -820,14 +820,16 @@ void ScreenEvaluation::Update( float fDeltaTime )
|
||||
if(RageTimer::GetTimeSinceStart() < m_fScreenCreateTime + m_TimeToPlayJudgeSound[l])
|
||||
continue;
|
||||
|
||||
RageColor c;
|
||||
c.a = 1;
|
||||
if((SOUND_ON_FULL_ALPHA && (m_sprJudgeLabels[l].GetDiffuse().a == c.a || m_textJudgeNumbers[l][PLAYER_1].GetDiffuse().a == c.a || m_textJudgeNumbers[l][PLAYER_2].GetDiffuse().a == c.a) || !SOUND_ON_FULL_ALPHA) )
|
||||
if(SOUND_ON_FULL_ALPHA)
|
||||
{
|
||||
m_soundJudgeSound[l].Play();
|
||||
m_TimeToPlayJudgeSound[l] = -1;
|
||||
if( m_sprJudgeLabels[l].GetDiffuse().a != 1.0f &&
|
||||
m_textJudgeNumbers[l][PLAYER_1].GetDiffuse().a != 1.0f &&
|
||||
m_textJudgeNumbers[l][PLAYER_2].GetDiffuse().a != 1.0f )
|
||||
continue;
|
||||
}
|
||||
|
||||
m_soundJudgeSound[l].Play();
|
||||
m_TimeToPlayJudgeSound[l] = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user