1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Put rainbow BG timer in Graphics::updatebackground()

Otherwise it'll go way too fast.
This commit is contained in:
Misa 2020-04-28 19:47:37 -07:00 committed by Ethan Lee
parent 684aa38ff2
commit 61d2526669

View file

@ -1842,13 +1842,6 @@ void Graphics::drawbackground( int t )
break; //Green break; //Green
case 6: case 6:
//crazy case //crazy case
spcoldel--;
if (spcoldel <= 0)
{
spcoldel = 15;
spcol++;
if (spcol >= 12) spcol = 0;
}
switch(spcol) switch(spcol)
{ {
case 0: case 0:
@ -2185,6 +2178,17 @@ void Graphics::updatebackground(int t)
break; break;
case 2: case 2:
//Lab //Lab
if (rcol == 6)
{
//crazy caze
spcoldel--;
if (spcoldel <= 0)
{
spcoldel = 15;
spcol++;
if (spcol >= 12) spcol = 0;
}
}
for (int i = 0; i < 18; i++) for (int i = 0; i < 18; i++)
{ {
backboxes[i].x += backboxvx[i]; backboxes[i].x += backboxvx[i];