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
case 6:
//crazy case
spcoldel--;
if (spcoldel <= 0)
{
spcoldel = 15;
spcol++;
if (spcol >= 12) spcol = 0;
}
switch(spcol)
{
case 0:
@@ -2185,6 +2178,17 @@ void Graphics::updatebackground(int t)
break;
case 2:
//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++)
{
backboxes[i].x += backboxvx[i];