From 1a7fc7cb5125135d38adfd630e09ff7af7fd498e Mon Sep 17 00:00:00 2001 From: NicknEma <62065135+NicknEma@users.noreply.github.com> Date: Thu, 26 Feb 2026 18:10:52 +0100 Subject: [PATCH] Remove unused variable in OneLoneCoder_PGE_Rectangles.cpp The variable isn't used or set anywhere in the function --- .../SmallerProjects/OneLoneCoder_PGE_Rectangles.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}