diff --git a/PixelGameEngine/SmallerProjects/OneLoneCoder_PGE_Rectangles.cpp b/PixelGameEngine/SmallerProjects/OneLoneCoder_PGE_Rectangles.cpp index 40184e7..12ec571 100644 --- a/PixelGameEngine/SmallerProjects/OneLoneCoder_PGE_Rectangles.cpp +++ b/PixelGameEngine/SmallerProjects/OneLoneCoder_PGE_Rectangles.cpp @@ -52,7 +52,7 @@ Author ~~~~~~ - David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020 + David Barr, aka javidx9, ©OneLoneCoder 2018, 2019, 2020 */ #define OLC_PGE_APPLICATION @@ -230,7 +230,7 @@ class RectangleCollisions : public olc::PixelGameEngine // Sort collisions in order of distance olc::vf2d cp, cn; - float t = 0, min_t = INFINITY; + float t = 0; std::vector> z; // Work out collision point, add it to vector along with rect ID @@ -278,4 +278,4 @@ int main() if (demo.Construct(256, 240, 4, 4, false, false)) demo.Start(); return 0; -} \ No newline at end of file +}