1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00

Reduce indentation of "else if" in Graphics::cutscenebars()

There's no need to put the if-statement inside an entire else-block if
it's the only if-statement in there.
This commit is contained in:
Misa 2020-04-28 17:17:13 -07:00 committed by Ethan Lee
parent 2510d3a6ba
commit 57f87dc820

View File

@ -844,15 +844,11 @@ void Graphics::cutscenebars()
FillRect(backBuffer, 0, 0, usethispos, 16, 0x000000);
FillRect(backBuffer, 360-usethispos, 224, usethispos, 16, 0x000000);
}
else
else if (cutscenebarspos > 0) //disappearing
{
//disappearing
if (cutscenebarspos > 0)
{
//draw
FillRect(backBuffer, 0, 0, usethispos, 16, 0x000000);
FillRect(backBuffer, 360-usethispos, 224, usethispos, 16, 0x000000);
}
//draw
FillRect(backBuffer, 0, 0, usethispos, 16, 0x000000);
FillRect(backBuffer, 360-usethispos, 224, usethispos, 16, 0x000000);
}
}