diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 43550bda..b63e67c1 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -95,7 +95,6 @@ void Graphics::init() // initialize everything else to zero backBuffer = NULL; - backboxrect = SDL_Rect(); bcol = 0; bcol2 = 0; ct = colourTransform(); @@ -1952,7 +1951,7 @@ void Graphics::drawbackground( int t ) break; } - backboxrect = backboxes[i]; + SDL_Rect backboxrect = backboxes[i]; backboxrect.x = lerp(backboxes[i].x - backboxvx[i], backboxes[i].x); backboxrect.y = lerp(backboxes[i].y - backboxvy[i], backboxes[i].y); diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index 5ab717ef..9ac181ea 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -284,7 +284,6 @@ public: std::vector backboxvx; std::vector backboxvy; std::vector backboxint; - SDL_Rect backboxrect; int warpskip, warpfcol, warpbcol;