mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Put rainbow BG timer in Graphics::updatebackground()
Otherwise it'll go way too fast.
This commit is contained in:
parent
684aa38ff2
commit
61d2526669
1 changed files with 11 additions and 7 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue