Merge 99ec37ff7a647fe872e542c68d114f0b8e712052 into b7fdab15769d8a8cad14cc58213da3bdfa19fdf4
This commit is contained in:
commit
92643c7ca6
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user