diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index e55466a2..e9cdd585 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -104,8 +104,6 @@ void Graphics::init() // initialize everything else to zero backBuffer = NULL; - bcol = 0; - bcol2 = 0; ct = colourTransform(); foot_rect = SDL_Rect(); foregrounddrawn = false; @@ -1966,6 +1964,9 @@ void Graphics::drawbackground( int t ) } break; case 2: + { + int bcol, bcol2; + //Lab switch(rcol) { @@ -2112,6 +2113,7 @@ void Graphics::drawbackground( int t ) FillRect(backBuffer,backboxrect, bcol2); } break; + } case 3: //Warp zone (horizontal) FillRect(backBuffer, 0x000000); BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL); diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index f62771d0..673165be 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -200,7 +200,7 @@ public: colourTransform ct; - int bcol, bcol2, rcol; + int rcol;