Merge 99ec37ff7a647fe872e542c68d114f0b8e712052 into b7fdab15769d8a8cad14cc58213da3bdfa19fdf4

This commit is contained in:
faisal 2022-08-28 01:57:08 +09:00 committed by GitHub
commit 92643c7ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ public:
olc::vi2d vCurrentCell = object.vPos.floor(); olc::vi2d vCurrentCell = object.vPos.floor();
olc::vi2d vTargetCell = vPotentialPosition; olc::vi2d vTargetCell = vPotentialPosition;
olc::vi2d vAreaTL = (vCurrentCell.min(vTargetCell) - olc::vi2d(1, 1)).max({ 0,0 }); 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; olc::vf2d vRayToNearest;