Apply konstin's idea which makes it much shorter
This commit is contained in:
parent
683f42527e
commit
604e712b81
@ -2756,24 +2756,8 @@ void Kart::setOnScreenText(const wchar_t *text)
|
||||
|
||||
void Kart::activateSkidLight(unsigned int level)
|
||||
{
|
||||
if (level > 0)
|
||||
{
|
||||
if (level == 1)
|
||||
{
|
||||
m_skidding_light_1->setVisible(true);
|
||||
m_skidding_light_2->setVisible(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_skidding_light_2->setVisible(true);
|
||||
m_skidding_light_1->setVisible(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_skidding_light_1->setVisible(false);
|
||||
m_skidding_light_2->setVisible(false);
|
||||
}
|
||||
m_skidding_light_1->setVisible(level == 1);
|
||||
m_skidding_light_2->setVisible(level > 1);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
Loading…
Reference in New Issue
Block a user