1
0
Fork 0
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:
fgenesis 2014-04-23 02:07:00 +02:00
parent 0486643455
commit 71c87e1302

View file

@ -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);