1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-10 19:09:45 +01: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,16 +844,12 @@ void Graphics::cutscenebars()
FillRect(backBuffer, 0, 0, usethispos, 16, 0x000000);
FillRect(backBuffer, 360-usethispos, 224, usethispos, 16, 0x000000);
}
else
{
//disappearing
if (cutscenebarspos > 0)
else if (cutscenebarspos > 0) //disappearing
{
//draw
FillRect(backBuffer, 0, 0, usethispos, 16, 0x000000);
FillRect(backBuffer, 360-usethispos, 224, usethispos, 16, 0x000000);
}
}
}
void Graphics::cutscenebarstimer()