simplify
This commit is contained in:
@@ -820,14 +820,16 @@ void ScreenEvaluation::Update( float fDeltaTime )
|
|||||||
if(RageTimer::GetTimeSinceStart() < m_fScreenCreateTime + m_TimeToPlayJudgeSound[l])
|
if(RageTimer::GetTimeSinceStart() < m_fScreenCreateTime + m_TimeToPlayJudgeSound[l])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RageColor c;
|
if(SOUND_ON_FULL_ALPHA)
|
||||||
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) )
|
|
||||||
{
|
{
|
||||||
m_soundJudgeSound[l].Play();
|
if( m_sprJudgeLabels[l].GetDiffuse().a != 1.0f &&
|
||||||
m_TimeToPlayJudgeSound[l] = -1;
|
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