pull/213/merge
faisal 3 years ago committed by GitHub
commit 92643c7ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Videos/OneLoneCoder_PGE_CircleVsRect.cpp

@ -149,7 +149,7 @@ public:
olc::vi2d vCurrentCell = object.vPos.floor();
olc::vi2d vTargetCell = vPotentialPosition;
olc::vi2d vAreaTL = (vCurrentCell.min(vTargetCell) - olc::vi2d(1, 1)).max({ 0,0 });
olc::vi2d vAreaBR = (vCurrentCell.max(vTargetCell) + olc::vi2d(1, 1)).min(vWorldSize);
olc::vi2d vAreaBR = (vCurrentCell.max(vTargetCell) + olc::vi2d(1, 1)).min(vWorldSize - olc::vi2d(1, 1));
olc::vf2d vRayToNearest;

Loading…
Cancel
Save