Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<std::pair<int, float>> z;

// Work out collision point, add it to vector along with rect ID
Expand Down Expand Up @@ -278,4 +278,4 @@ int main()
if (demo.Construct(256, 240, 4, 4, false, false))
demo.Start();
return 0;
}
}