mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Put rainbow BG timer in Graphics::updatebackground()
Otherwise it'll go way too fast.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user