From 61d252666900368143a1dd21064c05ffea0140fb Mon Sep 17 00:00:00 2001 From: Misa Date: Tue, 28 Apr 2020 19:47:37 -0700 Subject: [PATCH] Put rainbow BG timer in Graphics::updatebackground() Otherwise it'll go way too fast. --- desktop_version/src/Graphics.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index c0cfeaf2..13aedaa9 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -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];