mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 22:19:07 +00:00
Restore pathfinding to be map-block-exact.
This commit is contained in:
parent
0486643455
commit
71c87e1302
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void PathFinding::generatePath(RenderObject *ro, TileVector start, TileVector go
|
||||||
|
|
||||||
SearchGrid grid;
|
SearchGrid grid;
|
||||||
JPS::PathVector path;
|
JPS::PathVector path;
|
||||||
if(JPS::findPath(path, grid, start.x, start.y, goal.x, goal.y, 10))
|
if(JPS::findPath(path, grid, start.x, start.y, goal.x, goal.y, 1))
|
||||||
{
|
{
|
||||||
vp.addPathNode(ro->position, 0);
|
vp.addPathNode(ro->position, 0);
|
||||||
generateVectorPath(path, vp, offx, offy);
|
generateVectorPath(path, vp, offx, offy);
|
||||||
|
|
Loading…
Reference in a new issue